wok-6.x annotate git/receipt @ rev 16552

slitaz-i18n: fix lxpanel keyboard icons
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 29 23:37:11 2014 +0000 (2014-04-29)
parents a50fa9a78201
children 7d6d92c10df6
rev   line source
b1+slitaz@1825 1 # SliTaz package receipt.
b1+slitaz@1825 2
b1+slitaz@1825 3 PACKAGE="git"
devl547@16274 4 VERSION="1.9.1"
b1+slitaz@1825 5 CATEGORY="development"
b1+slitaz@1825 6 SHORT_DESC="Fast version control system"
b1+slitaz@1825 7 MAINTAINER="b1+slitaz@nagel.org"
pascal@15002 8 LICENSE="GPL2"
slaxemulator@11009 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@15808 10 WEB_SITE="http://git-scm.com/"
devl547@16274 11 WGET_URL="ftp://ftp.kernel.org/pub/software/scm/git/$TARBALL"
pankso@16314 12
pankso@16314 13 # NO_NSEC=1
pankso@16314 14 CROSS_BUGS="bug: can't run test and make package."
pankso@16314 15 #HOST_ARCH="i486 arm"
slaxemulator@11009 16
b1+slitaz@1825 17 DEPENDS="zlib openssl curl expat"
pankso@16314 18 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
pankso@16314 19 tar bzip2"
b1+slitaz@1825 20
b1+slitaz@1825 21 # Rules to configure and make the package.
b1+slitaz@1825 22 compile_rules()
b1+slitaz@1825 23 {
b1+slitaz@1825 24 cd $src
pascal@5425 25 [ -L /bin/tar ] && tazpkg get-install tar --forced
pankso@4165 26 ./configure \
pankso@4165 27 --prefix=/usr \
slaxemulator@11682 28 --libexecdir=/usr/lib \
pankso@4165 29 --without-tcltk \
pankso@16314 30 $CONFIGURE_ARGS &&
pankso@16314 31 make THREADED_DELTA_SEARCH=1 &&
slaxemulator@11009 32 make THREADED_DELTA_SEARCH=1 DESTDIR=$DESTDIR install
b1+slitaz@1825 33 }
b1+slitaz@1825 34
b1+slitaz@1825 35 # Rules to gen a SliTaz package suitable for Tazpkg.
b1+slitaz@1825 36 genpkg_rules()
b1+slitaz@1825 37 {
slaxemulator@11682 38 mkdir -p $fs/etc/init.d
slaxemulator@11682 39 cp -a $stuff/git-daemon $fs/etc/init.d
slaxemulator@11009 40 cp -a $install/usr $fs/
slaxemulator@11682 41 strip -s $fs/usr/lib/git-core/* 2>/dev/null || true
b1+slitaz@1825 42 }
slaxemulator@11682 43
slaxemulator@11682 44 # edit daemons.conf.
slaxemulator@11682 45 post_install()
slaxemulator@11682 46 {
slaxemulator@11682 47 local root
slaxemulator@11682 48 root=$1
slaxemulator@11682 49 if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
al@14645 50 mkdir -p $root/var/www/git
slaxemulator@11682 51 echo '# Git daemon options.' >> $root/etc/daemons.conf
slaxemulator@11682 52 echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
slaxemulator@11682 53 echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
slaxemulator@11682 54 echo '' >> $root/etc/daemons.conf
slaxemulator@11682 55 fi
al@14645 56 }