aboutsummaryrefslogtreecommitdiffstats
path: root/main/pax-utils/APKBUILD
blob: 0d8ede5f97644c061ff8880829454f6c14521431 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pax-utils
pkgver=0.8.1
pkgrel=0
pkgdesc="ELF related utils for ELF 32/64 binaries"
url="http://hardened.gentoo.org/pax-utils.xml"
arch="all"
license='GPL2'
depends="scanelf"
makedepends=
source="http://dev.gentoo.org/~vapier/dist/pax-utils-$pkgver.tar.xz
	musl-decl.patch"
subpackages="$pkgname-doc scanelf:_scanelf"

_builddir="$srcdir"/pax-utils-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install || return 1
	rm -f "$pkgdir"/usr/bin/lddtree
}

_scanelf() {
	pkgdesc="Scan ELF binaries for stuff"
	depends=
	replaces="pax-utils"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/scanelf "$subpkgdir"/usr/bin/
}

md5sums="bc42279c5aff3682c12be40f72805cec  pax-utils-0.8.1.tar.xz
1056671d887efe6b7b6882fe1aff2052  musl-decl.patch"
sha256sums="844ff25b1a11bcef92ef34b22f576f226a772b67196818656f8874513438f5b9  pax-utils-0.8.1.tar.xz
63ba759021a3a40ab978ef007d6517123286c48061127c15d1c1557b41ff49c4  musl-decl.patch"
sha512sums="bd8ae0c35058b79a99bcbb5df234c8d4a02ccf0ebd4b06cc30cdb01bc50b7e5ba6cc5cbbf820a0d57dcdc751fd1ea81d5969a4447c4594ab170958edabe41740  pax-utils-0.8.1.tar.xz
0ceac13c8d8a897408841c7cfc762670fe3ebc6732b7a0cdabb46afc6beec117a33abccddbaf3cc62ddef0355167baf41ecb6331aa907751b7a60cc177306f1c  musl-decl.patch"