diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2019-04-23 13:41:49 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2019-04-25 23:24:55 +0200 |
commit | 3d93f717b9b587965c958dd05bff4b6b3d7f8169 (patch) | |
tree | 46a67daad631929eb0e60ad055d3c6327da6a902 /testing/py3-elftools | |
parent | a3c5ca45fd167876774fd2c0355f5c0f039dc73b (diff) | |
download | aports-3d93f717b9b587965c958dd05bff4b6b3d7f8169.tar.bz2 aports-3d93f717b9b587965c958dd05bff4b6b3d7f8169.tar.xz |
testing/py3-elftools: new aport
Diffstat (limited to 'testing/py3-elftools')
-rw-r--r-- | testing/py3-elftools/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/py3-elftools/APKBUILD b/testing/py3-elftools/APKBUILD new file mode 100644 index 0000000000..f48decfda0 --- /dev/null +++ b/testing/py3-elftools/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: +pkgname=py3-elftools +_pkgname=py${pkgname##py3-} +pkgver=0.25 +pkgrel=0 +pkgdesc="Parsing ELF and DWARF in Python" +url="https://github.com/eliben/pyelftools" +arch="noarch" +license="Unlicense" +depends="python3 py3-setuptools" +makedepends="python3-dev" +install="" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/eliben/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 test/run_all_unittests.py +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" + + mkdir -p "$pkgdir"/usr/share/doc/$pkgname + install -m644 README.rst CHANGES \ + "$pkgdir"/usr/share/doc/$pkgname/doc +} + +sha512sums="84fbff3a8abc1d0d47e2113d14f509a6a0e8fb97d09c6abf91cefb416b7237d31f53945627e3958901b2a5229f57d5d2ffc9e0b7b4cd271f61689781dc6871bc py3-elftools-0.25.tar.gz" |