xbps: repair cross builds.

This commit is contained in:
Juan RP 2014-02-10 17:36:13 +01:00
parent 8bb528b4fc
commit da8d6bb825
1 changed files with 15 additions and 4 deletions

View File

@ -6,9 +6,6 @@ patch_args="-Np1"
bootstrap=yes
conf_files="/etc/xbps/xbps.conf"
replaces="xbps>=0"
build_style=configure
configure_script="env HAVE_VASPRINTF=1 ./configure"
configure_args="--prefix=/usr --sysconfdir=/etc --enable-static --enable-debug"
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2 confuse-devel"
depends="xbps-triggers"
short_desc="The XBPS package system utilities"
@ -22,7 +19,6 @@ if [ -z "$CHROOT_READY" ]; then
else
hostmakedepends="which pkg-config"
makedepends+=" atf-devel"
configure_args+=" --enable-tests"
xbps-tests_package() {
short_desc+=" - Kyua testsuite"
@ -38,6 +34,21 @@ do_fetch() {
git clone -b${version} git://github.com/voidlinux/xbps.git xbps-${version}
}
do_configure() {
if [ "$CHROOT_READY" ]; then
_args="--enable-tests"
fi
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-debug ${_args}
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
}
libxbps_package() {
short_desc+=" - runtime library"
replaces="xbps<0.16.3_2 libxbps>=0"