void-packages/srcpkgs/xbps-static/template

37 lines
1.1 KiB
Bash

# Template file for 'xbps-static'
# NOTE: keep this package synchronized with "srcpkgs/xbps"
pkgname=xbps-static
version=0.59.2
revision=1
# only musl
archs="*-musl"
build_style=configure
hostmakedepends="pkg-config"
makedepends="libarchive-devel zlib-devel openssl-devel"
depends="xbps-triggers"
short_desc="XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="BSD-2-Clause, BSD-3-Clause, ISC"
homepage="https://github.com/void-linux/xbps"
changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
checksum=a6607e83fcd654a0ae846d729e43fefd8da9a61323e91430f884caf895b4f59b
do_configure() {
./configure --prefix=/usr --sysconfdir=/etc --enable-static
}
do_install() {
make DESTDIR=${wrksrc}/static-install install
vmkdir usr/bin
mv ${wrksrc}/static-install/usr/bin/*.static ${DESTDIR}/usr/bin
for _f in /var/db/xbps/keys/* ; do
vinstall "$_f" 0644 var/db/xbps/keys/
done
}
post_install() {
vlicense LICENSE
vlicense LICENSE.3RDPARTY
}