38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
# Template file for 'xbps-static'
|
|
# NOTE: keep this package synchronized with "srcpkgs/xbps".
|
|
pkgname=xbps-static
|
|
version=0.52
|
|
revision=2
|
|
wrksrc="xbps-${version}"
|
|
build_style=configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libarchive-devel"
|
|
depends="xbps-triggers"
|
|
short_desc="The XBPS package system utilities - static binaries"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://www.voidlinux.eu/xbps"
|
|
distfiles="https://github.com/void-linux/xbps/archive/$version.tar.gz"
|
|
checksum=f9a584d286c28eaf5a00f2e0ea9a8124b2200d50ecb62d26adcabe51f328b551
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) ;;
|
|
*) broken="only for musl arches" ;;
|
|
esac
|
|
|
|
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
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
vlicense COPYING.3RDPARTY
|
|
}
|