From ba4561e79fd840ceea7d493fe72d12d7c271522d Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 19 Jul 2014 18:44:02 +0200 Subject: [PATCH] New package: pax-20140703 --- srcpkgs/pax/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/pax/template diff --git a/srcpkgs/pax/template b/srcpkgs/pax/template new file mode 100644 index 0000000000..fe2cb0bfc6 --- /dev/null +++ b/srcpkgs/pax/template @@ -0,0 +1,31 @@ +# Template file for 'pax' +pkgname=pax +version=20140703 +revision=1 +wrksrc=paxmirabilis-${version}/${pkgname} +hostmakedepends="cpio bmake" +short_desc="pax archiver from MirOS (plus tar and cpio)" +maintainer="Christian Neukirchen " +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() { + cd .. + 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 +}