void-packages/srcpkgs/xbps/template

63 lines
1.4 KiB
Text
Raw Normal View History

# Template file for 'xbps'
pkgname=xbps
2014-09-29 13:56:20 +00:00
version=0.41
revision=9
2013-11-29 09:29:44 +00:00
bootstrap=yes
build_style=configure
short_desc="The XBPS package system utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
2013-11-29 09:29:44 +00:00
homepage="http://www.voidlinux.eu/xbps"
2011-07-15 13:57:36 +00:00
license="Simplified BSD"
2013-09-25 09:30:51 +00:00
2014-07-14 10:21:50 +00:00
makedepends="zlib-devel libressl-devel libarchive-devel>=3.1.2"
2014-03-11 09:33:30 +00:00
depends="xbps-triggers>=0.75"
conf_files="/etc/xbps/xbps.conf"
if [ -z "$CHROOT_READY" ]; then
CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include"
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
else
hostmakedepends="pkg-config git"
2014-10-23 21:07:41 +00:00
makedepends+=" atf-devel>=0.21"
xbps-tests_package() {
short_desc+=" - Kyua testsuite"
pkg_install() {
vmove usr/tests
}
}
fi
if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then
# XXX disable SSP until the issue is found.
CFLAGS+=" -fno-stack-protector"
fi
do_fetch() {
git clone -b${version} git://github.com/voidlinux/xbps ${pkgname}-${version}
}
2014-02-10 16:36:13 +00:00
do_configure() {
if [ "$CHROOT_READY" ]; then
_args="--enable-tests"
fi
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug ${_args}
2014-02-10 16:36:13 +00:00
}
libxbps_package() {
short_desc+=" - runtime library"
pkg_install() {
2013-07-05 06:14:30 +00:00
vmove "usr/lib/*.so.*"
}
}
libxbps-devel_package() {
short_desc+=" - runtime library (development files)"
2013-07-05 06:14:30 +00:00
depends="zlib-devel libarchive-devel libxbps>=${version}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
2013-07-05 06:14:30 +00:00
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}