pax: add alternatives

This commit is contained in:
Leah Neukirchen 2018-01-11 15:09:51 +01:00
parent 3d42051a95
commit 07893477c1

View file

@ -1,7 +1,7 @@
# Template file for 'pax'
pkgname=pax
version=20171021
revision=1
revision=2
wrksrc="paxmirabilis-${version}"
build_wrksrc="${pkgname}"
hostmakedepends="cpio bmake groff"
@ -12,6 +12,11 @@ homepage="https://www.mirbsd.org/MirOS/dist/mir/cpio/"
distfiles="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.cpio.gz"
checksum=fd45cb42524ae94b5105588bb6bce347e731703740197cb9d933065f27006382
alternatives="
pax:pax:/usr/bin/paxmirabilis
pax:pax.1:/usr/share/man/man1/paxmirabilis.1
"
case "$XBPS_TARGET_MACHINE" in
*-musl)
makedepends+=" musl-fts-devel"
@ -34,10 +39,10 @@ do_build() {
}
do_install() {
vbin pax
ln -s pax ${DESTDIR}/usr/bin/paxtar
ln -s pax ${DESTDIR}/usr/bin/paxcpio
vman pax.1
vbin pax paxmirabilis
ln -s paxmirabilis ${DESTDIR}/usr/bin/paxtar
ln -s paxmirabilis ${DESTDIR}/usr/bin/paxcpio
vman pax.1 paxmirabilis.1
vman tar.1 paxtar.1
vman cpio.1 paxcpio.1
head -n37 pax.c >LICENSE