blob: 46a1844c0cc627e6f672e69b67e6e444f9ac4f3c (
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
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="8ad6dd304919948e4b305f743c69de8f pax-utils-0.8.tar.xz
1056671d887efe6b7b6882fe1aff2052 musl-decl.patch"
sha256sums="cb6f00654c5278a0a9a28cf32cbdbae9914f20226adcb98f1ce6df4a872b20b6 pax-utils-0.8.tar.xz
63ba759021a3a40ab978ef007d6517123286c48061127c15d1c1557b41ff49c4 musl-decl.patch"
sha512sums="a2cdd9ec3e9b16601bbee5d08a271bad9e9b6e993074c92465184e06f3e033470ac98085ee43ecd3202ebbc5d81710873074d40b7d949977e168bd8c956512bb pax-utils-0.8.tar.xz
0ceac13c8d8a897408841c7cfc762670fe3ebc6732b7a0cdabb46afc6beec117a33abccddbaf3cc62ddef0355167baf41ecb6331aa907751b7a60cc177306f1c musl-decl.patch"
|