2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 07:40:11 -07:00
repo/core/git/build
2020-03-04 02:56:35 +02:00

28 lines
474 B
Bash
Executable File

#!/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