diff options
author | Cem Keylan <cem@ckyln.com> | 2020-06-19 01:47:44 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-06-19 01:47:44 +0300 |
commit | 706c708b5aac148cd323a7f6b40513ba756ef45e (patch) | |
tree | 2a9c963283378af3c7e04ba2e4683ccbd220b978 /personal/git/build | |
parent | c05ab7845f241547ab8607a91db1942617bc3d4e (diff) | |
download | repository-706c708b5aac148cd323a7f6b40513ba756ef45e.tar.gz |
move to personal
Diffstat (limited to 'personal/git/build')
-rwxr-xr-x | personal/git/build | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/personal/git/build b/personal/git/build new file mode 100755 index 0000000..5d55ca3 --- /dev/null +++ b/personal/git/build @@ -0,0 +1,67 @@ +#!/bin/sh -e +# Git build with git-send-email perl garbage enabled :c + +( + cd ssleay + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install +) + +( + cd uri + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install +) + +( + cd socket-ssl + yes | perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install +) + +( + cd sasl + PERL_USE_UNSAFE_INC=1 \ + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + make pure_install DESTDIR="$1" +) + +( + cd ssl + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$1" install + find "$1" \( -name '.packlist' -o -name '*.pod' \) -exec rm -rf {} + +) + +cd git + +# export CFLAGS="$CFLAGS -fPIC" +# export LDFLAGS="$LDFLAGS -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_SYS_POLL_H=1 +NO_CROSS_DIRECTORY_HARDLINKS=1 +NO_INSTALL_HARDLINKS=1 +EOF + +./configure \ + --prefix=/usr \ + --with-curl \ + ac_cv_snprintf_returns_bogus=no \ + ac_cv_fread_reads_directories=yes + +make +make DESTDIR="$1" install + +mv man/* "$1/usr/share/man" |