void-packages/srcpkgs/xbps-static/template

32 lines
1.0 KiB
Bash

# Template file for 'xbps-static'
#
# NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static
version=0.51
revision=13
build_style=configure
short_desc="The XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://www.voidlinux.eu/xbps"
license="2-clause-BSD"
distfiles="https://github.com/voidlinux/xbps/archive/$version.tar.gz"
checksum=fb97f78a2d1e78ca7fb74426bbc7edac7af36366491dbcf3b97db3aa1b20a8b7
wrksrc="xbps-${version}"
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel libarchive-devel"
depends="xbps-triggers"
only_for_archs="i686-musl x86_64-musl mips-musl mipshf-musl mipsel-musl mipselhf-musl armv6l-musl armv7l-musl aarch64-musl"
CFLAGS="-Wno-error"
do_configure() {
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-debug --verbose
}
do_install() {
make DESTDIR=${wrksrc}/static-install install
vmkdir usr/bin
mv ${wrksrc}/static-install/usr/bin/*.static ${DESTDIR}/usr/bin
}