void-packages/srcpkgs/pax/template

33 lines
891 B
Bash
Raw Normal View History

2014-07-19 16:44:02 +00:00
# Template file for 'pax'
pkgname=pax
version=20140703
2015-04-13 09:33:34 +00:00
revision=3
wrksrc=paxmirabilis-${version}
build_wrksrc=${pkgname}
build_pie=yes
2014-07-19 16:46:22 +00:00
hostmakedepends="cpio bmake groff"
2014-07-19 16:44:02 +00:00
short_desc="pax archiver from MirOS (plus tar and cpio)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="https://www.mirbsd.org/MirOS/dist/mir/cpio/"
distfiles="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.cpio.gz"
checksum=f464f143f81ff95097eb76e8e7bd9007a3101cbe481a89b09e69bf00e7c95fed
do_extract() {
zcat ${XBPS_SRCDISTDIR}/${pkgname}-${version}/paxmirabilis-${version}.cpio.gz | cpio -mid
}
do_build() {
bmake ${makejobs} MACHINE_OS=Linux \
CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
do_install() {
vbin pax
ln -s pax ${DESTDIR}/usr/bin/paxtar
ln -s pax ${DESTDIR}/usr/bin/paxcpio
vman pax.1
vman tar.1 paxtar.1
vman cpio.1 paxcpio.1
}