summaryrefslogtreecommitdiff
path: root/system/heirloom-pax/APKBUILD
blob: ec9e444d48ee36130d0765e3bb82f35bd39232e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=heirloom-pax
pkgver=1.0
pkgrel=2
pkgdesc="Portable Archive eXchange, the POSIX archival tool"
url="http://heirloom.sourceforge.net/"
arch="all"
options="!check"  # No test suite.
license="Zlib"
depends=""
makedepends="bsd-compat-headers bzip2-dev zlib-dev"
replaces="pax"
subpackages="$pkgname-doc"
source="https://distfiles.adelielinux.org/source/${pkgname}-$pkgver.tar.xz
	sysmacros.patch
	modern-c.patch
	"

build() {
	make LD="gcc"
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	mkdir -p "$pkgdir"/usr/5bin
	mkdir -p "$pkgdir"/usr/share/man/man1
	make install ROOT="$pkgdir"
	rm "$pkgdir"/usr/5bin/pax  # we don't need 1992 spec pax
	# don't conflict with BSD cpio, which is needed for dracut
	mv "$pkgdir"/usr/bin/cpio "$pkgdir"/usr/5bin/cpio
}

sha512sums="7b0ad20cc51b5bcec9c07e84c603e4891f636944f6f6bd13d3decb0e9d6b23d6164b663468ee2293b37721aae20334774f4e56fd8541ffceee934050e819b642  heirloom-pax-1.0.tar.xz
bcc12138ebed707e165a1ac5dac815acd85770974e19f62610e0fe32a96879fb1173fc4e7beafde12b7bc1ed03f2751b2839eeb3ccacbe209d8cbcfe0307eac3  sysmacros.patch
e0e2756bf3f55862880eadf6c5852e1c2dc6cdc4a75451a4d917685ef3c7f955f23229eef1c778be32bc27a1253ceaf820225d3ea794cfc88fe702adccaf9ef7  modern-c.patch"