2014-03-20 15:36:28 +00:00
|
|
|
# Template file for 'xbps-static'
|
|
|
|
#
|
|
|
|
# NOTE: keep this package synchronized with "srcpkgs/xbps".
|
|
|
|
pkgname=xbps-static
|
2014-04-21 09:45:52 +00:00
|
|
|
version=0.36
|
2014-03-26 08:38:13 +00:00
|
|
|
revision=1
|
2014-03-20 15:36:28 +00:00
|
|
|
bootstrap=yes
|
|
|
|
short_desc="The XBPS package system utilities - static binaries"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.voidlinux.eu/xbps"
|
|
|
|
license="Simplified BSD"
|
|
|
|
hostmakedepends="which pkg-config"
|
|
|
|
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2"
|
|
|
|
depends="xbps-triggers"
|
|
|
|
|
2014-03-31 10:20:29 +00:00
|
|
|
only_for_archs="i686-musl x86_64-musl armv6l-musl armv7l-musl"
|
2014-03-20 15:44:22 +00:00
|
|
|
|
2014-03-20 15:36:28 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686-musl) CFLAGS+=" -fno-stack-protector";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
git clone -b${version} git://github.com/voidlinux/xbps.git ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-debug
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${wrksrc}/static-install install
|
|
|
|
vmkdir usr/sbin
|
|
|
|
mv ${wrksrc}/static-install/usr/sbin/*.static ${DESTDIR}/usr/sbin
|
|
|
|
}
|