diff --git a/srcpkgs/chroot-git/template b/srcpkgs/chroot-git/template new file mode 100644 index 00000000000..6cd06fa7721 --- /dev/null +++ b/srcpkgs/chroot-git/template @@ -0,0 +1,33 @@ +# Template build file for "chroot-git". +pkgname=chroot-git +version=2.0.3 +revision=1 +bootstrap=yes +wrksrc="git-$version" +build_style=gnu-configure +configure_args="--without-curl --without-openssl + --without-python --without-expat --without-tcltk + ac_cv_lib_curl_curl_global_init=no ac_cv_lib_expat_XML_ParserCreate=no + ac_cv_fread_reads_directories=no ac_cv_snprintf_returns_bogus=no" +makedepends="zlib-devel" +make_build_args="CC_LD_DYNPATH=-L" +make_install_args="NO_INSTALL_HARDLINKS=1" +short_desc="GIT Tree History Storage Tool -- for xbps-src use" +maintainer="Juan RP " +homepage="http://git-scm.com/" +license="GPL-2" +distfiles="https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz" +checksum=cdbc015996052e83b9ecd7bd1f43b2772f7916f7688857836b0980a34234b69f + +if [ "$CHROOT_READY" ]; then + hostmakedepends="perl" +else + configure_args+=" --with-zlib=${XBPS_MASTERDIR}/usr" +fi + +do_install() { + # remove unneeded stuff. + make DESTDIR=${wrksrc}/build-tmp install + vmkdir usr/bin + vbin ${wrksrc}/build-tmp/usr/bin/git chroot-git +}