aboutsummaryrefslogtreecommitdiff
path: root/extra/git/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-28 17:42:54 +0300
committerCem Keylan <cem@ckyln.com>2020-05-28 17:42:54 +0300
commit880f0cef6ccd6e0260fb9569b08bfe4f4ee1407b (patch)
tree90bf98220b3d5d3e344734816563b9717508e4cc /extra/git/build
parentf243f9b393deb014f88a53d9048d31212a89bde7 (diff)
downloadrepository-880f0cef6ccd6e0260fb9569b08bfe4f4ee1407b.tar.gz
git: move to extra
Diffstat (limited to 'extra/git/build')
-rwxr-xr-xextra/git/build31
1 files changed, 31 insertions, 0 deletions
diff --git a/extra/git/build b/extra/git/build
new file mode 100755
index 00000000..d3001d72
--- /dev/null
+++ b/extra/git/build
@@ -0,0 +1,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
+
+for man in man1/*.1 man5/*.5 man7/*.7; do
+ install -Dm644 "$man" "$1/usr/share/man/$man"
+done