2019-06-02 07:00:13 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-09-30 07:11:36 +00:00
|
|
|
export CFLAGS="$CFLAGS -static"
|
2020-03-04 00:56:35 +00:00
|
|
|
|
2019-09-07 16:51:37 +00:00
|
|
|
cat > config.mak <<EOF
|
|
|
|
NO_GETTEXT=YesPlease
|
|
|
|
NO_SVN_TESTS=YesPlease
|
|
|
|
NO_TCLTK=YesPlease
|
|
|
|
NO_EXPAT=YesPlease
|
|
|
|
NO_NSEC=YesPlease
|
|
|
|
NO_PYTHON=YesPlease
|
2020-03-04 00:56:35 +00:00
|
|
|
NO_PERL=YesPlease
|
|
|
|
NO_SVN_TESTS=YesPlease
|
2019-09-07 16:51:37 +00:00
|
|
|
NO_SYS_POLL_H=1
|
|
|
|
NO_CROSS_DIRECTORY_HARDLINKS=1
|
|
|
|
NO_INSTALL_HARDLINKS=1
|
|
|
|
EOF
|
|
|
|
|
2019-06-18 12:17:49 +00:00
|
|
|
./configure \
|
2019-09-07 16:00:30 +00:00
|
|
|
--prefix=/usr \
|
2020-05-08 08:38:45 +00:00
|
|
|
--libexecdir=/usr/lib \
|
2020-09-30 07:11:36 +00:00
|
|
|
ac_cv_lib_curl_curl_global_init=yes \
|
2019-09-07 16:00:30 +00:00
|
|
|
ac_cv_snprintf_returns_bogus=no \
|
2019-09-07 16:51:37 +00:00
|
|
|
ac_cv_fread_reads_directories=yes
|
2019-06-02 07:00:13 +00:00
|
|
|
|
2020-10-01 04:52:04 +00:00
|
|
|
make LIBS="$(curl-config --static-libs) libgit.a xdiff/lib.a -lz"
|
2019-09-07 16:51:37 +00:00
|
|
|
make DESTDIR="$1" install
|
2020-04-27 05:48:02 +00:00
|
|
|
|
|
|
|
cp -rf man "$1/usr/share/man"
|