From 3d93f717b9b587965c958dd05bff4b6b3d7f8169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 23 Apr 2019 13:41:49 +0200 Subject: testing/py3-elftools: new aport --- testing/py3-elftools/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/py3-elftools/APKBUILD 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 +# 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" -- cgit v1.2.3