Commit 3d93f717 authored by Sören Tempel's avatar Sören Tempel
Browse files

testing/py3-elftools: new aport

parent a3c5ca45
# 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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment