diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-04-30 02:18:02 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-28 14:45:43 +0000 |
commit | 0cddb64934acb90616f687ecd5c24073bed58131 (patch) | |
tree | c65e84110b8fb685463afb66ddb1b319b6c4044f /main/pax-utils | |
parent | 6a033ac469647786c8b26d97bc6fad0fa1d35eac (diff) | |
download | aports-0cddb64934acb90616f687ecd5c24073bed58131.tar.bz2 aports-0cddb64934acb90616f687ecd5c24073bed58131.tar.xz |
main/pax-utils: modernize
- Fix license
- Add missing dependencies for testing
- Make tests use python3
- Use modern style
Diffstat (limited to 'main/pax-utils')
-rw-r--r-- | main/pax-utils/APKBUILD | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/main/pax-utils/APKBUILD b/main/pax-utils/APKBUILD index a933ad1f2b..8a38a6aaa4 100644 --- a/main/pax-utils/APKBUILD +++ b/main/pax-utils/APKBUILD @@ -1,17 +1,17 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=pax-utils pkgver=1.2.3 -pkgrel=0 +pkgrel=1 pkgdesc="ELF related utils for ELF 32/64 binaries" url="https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities" arch="all" -options="!check" # Requires unpackaged dependencies -license="GPL-2.0" +license="GPL-2.0-only" depends="scanelf" -makedepends_build="" makedepends_host="linux-headers libcap-dev" -makedepends="$makedepends_build $makedepends_host" +makedepends="$makedepends_host" +checkdepends="bash python3 py3-elftools" source="https://dev.gentoo.org/~slyfox/distfiles/pax-utils-$pkgver.tar.xz fix-eitype.patch" subpackages="$pkgname-doc scanelf:_scanelf" @@ -22,6 +22,12 @@ build() { make USE_CAP=yes } +check() { + # Use py3 + sed -i '1 s:^.*$:#!/usr/bin/python3:' lddtree.py + make check +} + package() { cd "$builddir" make DESTDIR="$pkgdir/" install @@ -32,7 +38,7 @@ package() { _scanelf() { pkgdesc="Scan ELF binaries for stuff" - depends= + depends="" replaces="pax-utils" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/scanelf "$subpkgdir"/usr/bin/ |