void-packages/srcpkgs/xbps-static/template

29 lines
952 B
Text

# Template file for 'xbps-static'
#
# NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static
version=0.44
revision=2
build_style=configure
short_desc="The XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.voidlinux.eu/xbps"
license="2-clause-BSD"
distfiles="https://github.com/voidlinux/xbps/archive/${version}.tar.gz"
checksum=159199564c6b6203dc2ce517fbe8c377e470813ffa7f51121df2589cb8259e4c
wrksrc="xbps-${version}"
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel>=2.1.4 libarchive-devel>=3.1.2"
depends="xbps-triggers"
only_for_archs="i686-musl x86_64-musl armv6l-musl armv7l-musl"
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
}