wok-current view git/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (3 weeks ago)
parents b24b6ee1d4d2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="git"
4 VERSION="2.39.4"
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 libffi"
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 HOST_ARCH="i486 x86_64"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - ${WGET_URL%/*} 2>/dev/null | \
28 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 ./configure \
35 --prefix=/usr \
36 --libexecdir=/usr/lib \
37 --without-tcltk \
38 $CONFIGURE_ARGS &&
39 make THREADED_DELTA_SEARCH=1 &&
40 make install THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/etc/init.d
48 cp -a $stuff/git-daemon $fs/etc/init.d
49 cp -a $install/usr $fs
51 # moved to package git-lang
52 rm -rf $fs/usr/share/locale
54 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
55 }
57 # edit daemons.conf.
58 post_install()
59 {
60 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"
61 then
62 mkdir -p "$1/var/www/git"
63 echo '# Git daemon options.
64 GIT_REPO="/var/www/git/"
65 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"
66 ' >> "$1/etc/daemons.conf"
67 fi
68 }