blob: 23c8bced39906c3a16d4ffb988f0f32f66ee2210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh -e
export CFLAGS="$CFLAGS -fPIC"
patch -p1 < git-tiny.patch
cat > config.mak <<EOF
NO_GETTEXT=YesPlease
NO_SVN_TESTS=YesPlease
NO_TCLTK=YesPlease
NO_EXPAT=YesPlease
NO_NSEC=YesPlease
NO_PYTHON=YesPlease
NO_PERL=YesPlease
NO_SVN_TESTS=YesPlease
NO_SYS_POLL_H=1
NO_CROSS_DIRECTORY_HARDLINKS=1
NO_INSTALL_HARDLINKS=1
EOF
./configure \
--prefix=/usr \
ac_cv_snprintf_returns_bogus=no \
ac_cv_fread_reads_directories=yes
make
make DESTDIR="$1" install
install -Dm644 -t "$1/usr/share/man/man1" man1/*.1
install -Dm644 -t "$1/usr/share/man/man5" man5/*.5
install -Dm644 -t "$1/usr/share/man/man7" man7/*.7
|