2014-03-20 16:36:28 +01:00
|
|
|
# Template file for 'xbps-static'
|
|
|
|
#
|
|
|
|
# NOTE: keep this package synchronized with "srcpkgs/xbps".
|
|
|
|
pkgname=xbps-static
|
2015-01-05 16:11:45 +01:00
|
|
|
version=0.43.1
|
2015-01-11 11:03:49 +01:00
|
|
|
revision=3
|
2014-10-29 09:59:57 +01:00
|
|
|
build_style=configure
|
2014-03-20 16:36:28 +01:00
|
|
|
short_desc="The XBPS package system utilities - static binaries"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.voidlinux.eu/xbps"
|
|
|
|
license="Simplified BSD"
|
2014-10-29 09:59:57 +01:00
|
|
|
distfiles="https://github.com/voidlinux/xbps/archive/${version}.tar.gz"
|
2015-01-05 16:11:45 +01:00
|
|
|
checksum=d8a2511dbeb7bccad0bf0bfd4fa9e46c5483c523db1f30bdd179c24ddf244e26
|
2014-12-22 12:58:58 +01:00
|
|
|
|
|
|
|
wrksrc="xbps-${version}"
|
2014-12-22 12:57:13 +01:00
|
|
|
hostmakedepends="pkg-config"
|
2014-07-14 12:21:50 +02:00
|
|
|
makedepends="zlib-devel libressl-devel libarchive-devel>=3.1.2"
|
2014-03-20 16:36:28 +01:00
|
|
|
depends="xbps-triggers"
|
|
|
|
|
2014-03-31 12:20:29 +02:00
|
|
|
only_for_archs="i686-musl x86_64-musl armv6l-musl armv7l-musl"
|
2014-03-20 16:44:22 +01:00
|
|
|
|
2014-03-20 16:36:28 +01:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686-musl) CFLAGS+=" -fno-stack-protector";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-debug
|
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${wrksrc}/static-install install
|
|
|
|
vmkdir usr/sbin
|
|
|
|
mv ${wrksrc}/static-install/usr/sbin/*.static ${DESTDIR}/usr/sbin
|
|
|
|
}
|