Juan RP 1ed6315bfe
xbps{,-static}: merge two patches from master.
Fixes build failure on ppc64 (@q66) and a segfault
with xbps-checkvers --format (@duncaen).
2019-06-21 09:03:00 +02:00

34 lines
906 B
Bash

# Template file for 'xbps-static'
# NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static
version=0.54
revision=2
# only musl
archs="*-musl"
wrksrc="xbps-${version}"
build_style=configure
hostmakedepends="pkg-config"
makedepends="libarchive-devel"
depends="xbps-triggers"
short_desc="XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://www.voidlinux.org/xbps"
distfiles="https://github.com/void-linux/xbps/archive/${version}.tar.gz"
checksum=f7e97a342d9eb3f38274bef3136f91398692f50d84fd23bc7990da2000936a98
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
}
post_install() {
vlicense LICENSE
vlicense LICENSE.3RDPARTY
}