# Contributor: Sören Tempel # Maintainer: Peter Shkenev pkgname=py3-elftools _pkgname=py${pkgname##py3-} pkgver=0.29 pkgrel=3 pkgdesc="Parsing ELF and DWARF in Python" url="https://github.com/eliben/pyelftools" arch="noarch" license="Unlicense" depends="python3" makedepends="py3-setuptools" subpackages="$pkgname-pyc $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/eliben/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { python3 test/run_all_unittests.py } package() { python3 setup.py install --skip-build --root="$pkgdir" mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -m644 README.rst CHANGES \ "$pkgdir"/usr/share/doc/$pkgname/doc } sha512sums=" 0eba3b029a734abe9f8df92cd58bc967f10bf9f61c3a419bdbc5e637200844dddd947bcb485e8ebbe2eeaa7f7e91efc6500316af51aace1db051a658cf61153e py3-elftools-0.29.tar.gz "