]> git.armaanb.net Git - asd-repo.git/blob - core/git/build
786edb0640982b1de7f18e8c3789c74bfbb313c4
[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_EXPAT=YesPlease
10 NO_NSEC=YesPlease
11 NO_SVN_TESTS=YesPlease
12 NO_SYS_POLL_H=1
13 NO_CROSS_DIRECTORY_HARDLINKS=1
14 NO_INSTALL_HARDLINKS=1
15 EOF
16
17 ./configure \
18     --prefix=/usr \
19     --libexecdir=/usr/lib \
20     ac_cv_lib_curl_curl_global_init=yes \
21     ac_cv_snprintf_returns_bogus=no \
22     ac_cv_fread_reads_directories=yes
23
24 make LIBS="$(curl-config --static-libs) libgit.a xdiff/lib.a -lz"
25 make 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/*"