2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-10-02 14:30:57 -06:00
repo/core/git/build

30 lines
610 B
Plaintext
Raw Normal View History

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
NO_SVN_TESTS=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 \
--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
make LIBS="$(curl-config --static-libs) libgit.a xdiff/lib.a -lz"
2019-09-07 10:51:37 -06:00
make DESTDIR="$1" install
2020-04-26 23:48:02 -06:00
cp -rf man "$1/usr/share/man"