2013-03-12 16:50:12 +00:00
|
|
|
# Template build file for "chroot-git".
|
|
|
|
pkgname=chroot-git
|
2013-03-27 09:32:38 +00:00
|
|
|
version=1.8.2
|
2013-03-12 16:50:12 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="git-$version"
|
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--without-curl --without-openssl --without-python
|
2013-04-17 14:26:18 +00:00
|
|
|
--without-expat --without-tcltk ac_cv_lib_curl_curl_global_init=no
|
|
|
|
ac_cv_lib_expat_XML_ParserCreate=no"
|
2013-03-12 16:50:12 +00:00
|
|
|
make_install_args="NO_INSTALL_HARDLINKS=1"
|
|
|
|
short_desc="GIT Tree History Storage Tool -- for xbps-src use"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://git-scm.com/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://git-core.googlecode.com/files/git-$version.tar.gz"
|
2013-03-27 09:32:38 +00:00
|
|
|
checksum=c2f35bcefa4f62a54c4bde41cc0f1cd3ddf03e9a6bc8a79557f1683789f213e6
|
2013-03-12 16:50:12 +00:00
|
|
|
|
|
|
|
bootstrap=yes
|
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$CHROOT_READY" ]; then
|
|
|
|
hostmakedepends="perl"
|
2013-03-12 16:50:12 +00:00
|
|
|
fi
|
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-24 09:27:31 +00:00
|
|
|
makedepends="zlib-devel"
|
2013-04-12 06:55:23 +00:00
|
|
|
configure_args+=" ac_cv_fread_reads_directories=no ac_cv_snprintf_returns_bogus=no"
|
2013-03-12 16:53:48 +00:00
|
|
|
fi
|
|
|
|
|
2013-03-12 16:50:12 +00:00
|
|
|
post_install() {
|
|
|
|
# remove unneeded stuff.
|
|
|
|
rm -rf ${DESTDIR}/usr/share/gitweb
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man
|
|
|
|
rm -rf ${DESTDIR}/usr/share/perl5
|
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
chroot-git_package() {
|
|
|
|
conflicts="git>=0"
|
|
|
|
provides="git-${version}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|