wok-next view git/receipt @ rev 21093

garcon, libacpi, mypaint: make shared libs executables to correct determine architecture (no "noarch")
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 29 17:03:13 2018 +0200 (2018-12-29)
parents a3c581bf52b8
children 20af6f0f7070
line source
1 # SliTaz package receipt v2.
3 PACKAGE="git"
4 VERSION="2.17.1"
5 CATEGORY="development"
6 SHORT_DESC="Fast version control system"
7 MAINTAINER="devel@slitaz.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 BUILD_DEPENDS="zlib-dev openssl-dev curl-dev expat-dev perl python-dev \
15 tar bzip2 gettext"
17 compile_rules() {
18 ./configure \
19 --prefix=/usr \
20 --with-gitconfig=/etc/gitconfig \
21 --libexecdir=/usr/lib \
22 --without-tcltk \
23 $CONFIGURE_ARGS &&
24 make THREADED_DELTA_SEARCH=1 &&
25 make THREADED_DELTA_SEARCH=1 DESTDIR=$install install || return 1
27 install -Dm755 $stuff/git-daemon $install/etc/init.d/git-daemon
28 }
30 genpkg_rules() {
31 copy @std
32 DEPENDS="zlib openssl curl expat"
33 }
35 # edit daemons.conf.
36 post_install() {
37 if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
38 mkdir -p "$1/var/www/git"
39 cat >> "$1/etc/daemons.conf" <<EOT
40 # Git daemon options.
41 GIT_REPO="/var/www/git/"
42 GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"
44 EOT
45 fi
46 }