aboutsummaryrefslogtreecommitdiffstats
path: root/main/pax-utils/APKBUILD
blob: e46d489e49362c6ea59e0c7a660d4ad6ff506792 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pax-utils
pkgver=0.9.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"
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="e47c9c59832e99fe9793d23610e3462c  pax-utils-0.9.1.tar.xz"
sha256sums="643ccaf6952f836c42aafcd5ad7e5f7de2d3472225a34603680b151a8b198b0c  pax-utils-0.9.1.tar.xz"
sha512sums="718cf371a2b14333fcc47e7c250ba4996bc2f4b3cab3373524215c74cdf979669cfd47b48f1b08214fb958e65e7ce83ecd74bd855f5e008d235fa6c4c57dad8e  pax-utils-0.9.1.tar.xz"