void-packages/srcpkgs/xbps-static/template
Juan RP 0e46d29f44
xbps{,-static}: backport patch from master.
The patch makes xbps-install(1) only return EEXIST if
there are file conflicts in transaction.

Previously xbps-install(1) could return EEXIST if
pkg is already installed or up-to-date.
2019-06-21 11:44:04 +02:00

34 lines
970 B
Bash

# Template file for 'xbps-static'
# NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static
version=0.54
revision=3
# 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"
changelog="https://github.com/void-linux/xbps/blob/master/NEWS"
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
}