Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 758 Bytes
#!/bin/bash
depends_on zlib
## https support
[[ $OSTYPE != *darwin* ]] && depends_on curl
depends_on libexpat
fetch_source https://www.kernel.org/pub/software/scm/git/git-2.17.1.tar.xz cdc8ba409643f6fe19b1bf0653d60f3aac0485f3
fetch_file https://www.kernel.org/pub/software/scm/git/git-manpages-2.17.1.tar.xz 2b8ada574452f9c93fe19c23e5720201e7f6de60
do_unpack
pushd_src
do_configure
do_make_and_install NO_GETTEXT=1 NO_TCLTK=1 V=1 NO_SVN_TESTS=1
popd_src
## install bash completion
mkdir -p "$PREFIX/etc/bash_completion.d"
install "$SRCDIR/contrib/completion/git-completion.bash" "$PREFIX/etc/bash_completion.d/git-completion.bash"
## install git manpages
mkdir -p "$PREFIX/share/man"
cat "$CACHEDIR/$FILENAME" | xz -d | tar xf - -C "$PREFIX/share/man"