void-packages/srcpkgs/xbps-static/template

31 lines
905 B
Bash

# Template file for 'xbps-static'
#
# NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static
version=0.44.1
revision=3
build_style=configure
short_desc="The XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.voidlinux.eu/xbps"
license="2-clause-BSD"
wrksrc="xbps-${version}"
hostmakedepends="git pkg-config"
makedepends="zlib-devel libressl-devel libarchive-devel"
depends="xbps-triggers"
only_for_archs="i686-musl x86_64-musl mips-musl armv6l-musl armv7l-musl aarch64-musl"
do_fetch() {
git clone -b${version} git://github.com/voidlinux/xbps ${wrksrc}
}
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
}