3fdad91bf9
Discussed with @chneukirchen.
31 lines
877 B
Bash
31 lines
877 B
Bash
# Template file for 'pax'
|
|
pkgname=pax
|
|
version=20151013
|
|
revision=1
|
|
wrksrc=paxmirabilis-${version}
|
|
build_wrksrc=${pkgname}
|
|
hostmakedepends="cpio bmake groff"
|
|
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=9b5dc7fba32dea5e86d7af2b314f3b4a80f26a9adbef84309af5b4967813a8f7
|
|
|
|
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
|
|
}
|