2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00
repo/core/git/build
2020-09-30 10:11:36 +03:00

33 lines
671 B
Bash
Executable File

#!/bin/sh -e
# Static libs for curl.
sed -i 's/--libs/--static-libs/g' Makefile
export CFLAGS="$CFLAGS -static"
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 \
--libexecdir=/usr/lib \
ac_cv_lib_curl_curl_global_init=yes \
ac_cv_snprintf_returns_bogus=no \
ac_cv_fread_reads_directories=yes
make LIBS='-lcurl -lssl -lcrypto libgit.a xdiff/lib.a -lz'
make DESTDIR="$1" install
cp -rf man "$1/usr/share/man"