2019-06-02 01:00:13 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-09-30 01:11:36 -06:00
|
|
|
export CFLAGS="$CFLAGS -static"
|
2020-03-03 17:56:35 -07:00
|
|
|
|
2019-09-07 10:51:37 -06: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-03 17:56:35 -07:00
|
|
|
NO_PERL=YesPlease
|
2019-09-07 10:51:37 -06:00
|
|
|
NO_SYS_POLL_H=1
|
|
|
|
NO_CROSS_DIRECTORY_HARDLINKS=1
|
|
|
|
NO_INSTALL_HARDLINKS=1
|
|
|
|
EOF
|
|
|
|
|
2019-06-18 06:17:49 -06:00
|
|
|
./configure \
|
2019-09-07 10:00:30 -06:00
|
|
|
--prefix=/usr \
|
2020-05-08 02:38:45 -06:00
|
|
|
--libexecdir=/usr/lib \
|
2020-09-30 01:11:36 -06:00
|
|
|
ac_cv_lib_curl_curl_global_init=yes \
|
2019-09-07 10:00:30 -06:00
|
|
|
ac_cv_snprintf_returns_bogus=no \
|
2019-09-07 10:51:37 -06:00
|
|
|
ac_cv_fread_reads_directories=yes
|
2019-06-02 01:00:13 -06:00
|
|
|
|
2022-03-07 01:36:07 -07:00
|
|
|
make LIBS="$(curl-config --static-libs) libgit.a reftable/libreftable.a xdiff/lib.a -lz"
|
2021-07-15 03:12:18 -06:00
|
|
|
make install
|
2020-04-26 23:48:02 -06:00
|
|
|
|
2021-07-11 17:54:13 -06:00
|
|
|
cp -Rf man "$1/usr/share/man"
|