| 1 | # Contributor: Marian Buschsieweke <[email protected]> |
| 2 | # Maintainer: Marian Buschsieweke <[email protected]> |
| 3 | pkgname=elf_diff |
| 4 | pkgver=0.7.1 |
| 5 | pkgrel=4 |
| 6 | pkgdesc="Tool to compare ELF binaries" |
| 7 | url="https://github.com/noseglasses/elf_diff" |
| 8 | arch="noarch" |
| 9 | license="GPL-3.0-only" |
| 10 | depends=" |
| 11 | py3-anytree |
| 12 | py3-beautifulsoup4 |
| 13 | py3-deepdiff |
| 14 | py3-dict2xml |
| 15 | py3-gitpython |
| 16 | py3-jinja2 |
| 17 | py3-progressbar2 |
| 18 | py3-setuptools |
| 19 | py3-yaml |
| 20 | python3 |
| 21 | " |
| 22 | makedepends="py3-gpep517" |
| 23 | checkdepends="py3-pytest" |
| 24 | options="!check" # unit tests fail |
| 25 | |
| 26 | subpackages="$pkgname-pyc" |
| 27 | source=" |
| 28 | https://files.pythonhosted.org/packages/source/e/elf_diff/elf_diff-$pkgver.tar.gz |
| 29 | |
| 30 | elf_diff |
| 31 | " |
| 32 | |
| 33 | build() { |
| 34 | gpep517 build-wheel \ |
| 35 | --wheel-dir .dist \ |
| 36 | --output-fd 3 3>&1 >&2 |
| 37 | } |
| 38 | |
| 39 | check() { |
| 40 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 41 | .testenv/bin/python3 -m installer .dist/*.whl |
| 42 | .testenv/bin/python3 -m pytest |
| 43 | } |
| 44 | |
| 45 | package() { |
| 46 | gpep517 install-wheel --destdir "$pkgdir" \ |
| 47 | .dist/*.whl |
| 48 | install -Dm755 "$srcdir"/elf_diff "$pkgdir"/usr/bin/elf_diff |
| 49 | } |
| 50 | |
| 51 | sha512sums=" |
| 52 | b1eef9954ceabf3a1936423131eacd71cf942a5d2f28419b3afac837b6b56cf81a9ff884f6e36495d0f61840aa9f5e68836960d29b0a7d7e00f4a0e938fcc141 elf_diff-0.7.1.tar.gz |
| 53 | 1ca2c8c7325f78df0d4033fe7cc8ed2e1da2716e4407b10fbcdf38cededcd1113dcc7a74b1816dff84103119c894dd499b061cf9936f2ff18eebef632b494617 elf_diff |
| 54 | " |