Permalink
Browse files

pax: update to 20190210.

  • Loading branch information...
chneukirchen committed Feb 11, 2019
1 parent 69fd6a8 commit db8184b8c5bb7490742339ef0f7f1835ba5b3a72
Showing with 7 additions and 12 deletions.
  1. +7 −12 srcpkgs/pax/template
@@ -1,16 +1,16 @@
# Template file for 'pax'
pkgname=pax
version=20171021
revision=2
version=20190210
revision=1
wrksrc="paxmirabilis-${version}"
build_wrksrc="${pkgname}"
hostmakedepends="cpio bmake groff"
hostmakedepends="cpio groff"
short_desc="POSIX archiving utility pax from MirOS (plus tar and cpio)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="3-clause-BSD"
homepage="https://www.mirbsd.org/MirOS/dist/mir/cpio/"
distfiles="https://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.cpio.gz"
checksum=fd45cb42524ae94b5105588bb6bce347e731703740197cb9d933065f27006382
checksum=24d5565c029e4b3b1d8b76680dd52d08d0adb5bb028188a3989e1358797631c5

alternatives="
pax:pax:/usr/bin/paxmirabilis
@@ -20,22 +20,17 @@ alternatives="
case "$XBPS_TARGET_MACHINE" in
*-musl)
makedepends+=" musl-fts-devel"
export LDADD="-lfts"
export LIBS="-lfts"
esac

do_extract() {
zcat ${XBPS_SRCDISTDIR}/${pkgname}-${version}/paxmirabilis-${version}.cpio.gz | cpio -mid
sed -i '1i#include <sys/types.h>' ${build_wrksrc}/pax.h
sed -i 's/__GLIBC__/__linux__/g' ${build_wrksrc}/cache.c
case "$XBPS_TARGET_MACHINE" in
i686-musl|arm*-musl|mips*-musl) # 32bit-platforms
sed -i 's/-DLONG_OFF_T//' ${build_wrksrc}/Makefile
esac
}

do_build() {
bmake ${makejobs} MACHINE_OS=Linux \
CC="${CC}" CFLAGS="${CFLAGS} -DGNU_SOURCE" LDFLAGS="${LDFLAGS}"
TARGET_OS=Linux CC="${CC}" CFLAGS="${CFLAGS} -DGNU_SOURCE" \
LDFLAGS="${LDFLAGS}" sh ./Build.sh
}

do_install() {

0 comments on commit db8184b

Please sign in to comment.