wok view git/receipt @ rev 24815

updated libnids (1.24 -> 1.26)
author Hans-G?nter Theisgen
date Wed Mar 23 06:19:41 2022 +0100 (2022-03-23)
parents 71360a13cd94
children ccb3cb4d6f56
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="2.35.1"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system."
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://git-scm.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/software/scm/git/$TARBALL"
14 SUGGESTED="git-lang"
15 DEPENDS="cacerts curl expat openssl zlib"
16 BUILD_DEPENDS="curl-dev expat-dev openssl-dev perl python-dev zlib-dev"
18 # NO_NSEC=1
19 CROSS_BUGS="bug: can't run test and make package."
20 #HOST_ARCH="i486 arm"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --libexecdir=/usr/lib \
35 --without-tcltk \
36 $CONFIGURE_ARGS &&
37 make THREADED_DELTA_SEARCH=1 &&
38 make install THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/etc/init.d
46 cp -a $stuff/git-daemon $fs/etc/init.d
47 cp -a $install/usr $fs
49 # moved to package git-lang
50 rm -rf $fs/usr/share/locale
52 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
53 }
55 # edit daemons.conf.
56 post_install()
57 {
58 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"
59 then
60 mkdir -p "$1/var/www/git"
61 echo '# Git daemon options.
62 GIT_REPO="/var/www/git/"
63 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"
64 ' >> "$1/etc/daemons.conf"
65 fi
66 }