]> git.armaanb.net Git - asd-repo.git/blob - core/git/build
axel: new package at 2.17.10
[asd-repo.git] / core / git / build
1 #!/bin/sh -e
2
3 export CFLAGS="$CFLAGS -static"
4
5 cat > config.mak <<EOF
6 NO_GETTEXT=YesPlease
7 NO_SVN_TESTS=YesPlease
8 NO_TCLTK=YesPlease
9 NO_NSEC=YesPlease
10 NO_SVN_TESTS=YesPlease
11 NO_SYS_POLL_H=1
12 NO_CROSS_DIRECTORY_HARDLINKS=1
13 NO_INSTALL_HARDLINKS=1
14 NO_PERL=YesPlease
15 EOF
16
17 ./configure \
18     --prefix=/usr \
19     --libexecdir=/usr/lib \
20     ac_cv_lib_curl_curl_global_init=no \
21     ac_cv_snprintf_returns_bogus=no \
22     ac_cv_fread_reads_directories=yes
23
24 gmake LIBS="libgit.a xdiff/lib.a -lz"
25 gmake DESTDIR="$1" install
26
27 cp -rf man "$1/usr/share/man"
28 rm -rf \
29     "$1/usr/share/gitweb" \
30     "$1/usr/share/git-core/templates/hooks/*"