projects/aports·blob master · refs

54 lines · 1.3 KiB

1# Contributor: Marian Buschsieweke <[email protected]>
2# Maintainer: Marian Buschsieweke <[email protected]>
3pkgname=elf_diff
4pkgver=0.7.1
5pkgrel=4
6pkgdesc="Tool to compare ELF binaries"
7url="https://github.com/noseglasses/elf_diff"
8arch="noarch"
9license="GPL-3.0-only"
10depends="
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 "
22makedepends="py3-gpep517"
23checkdepends="py3-pytest"
24options="!check" # unit tests fail
25
26subpackages="$pkgname-pyc"
27source="
28 https://files.pythonhosted.org/packages/source/e/elf_diff/elf_diff-$pkgver.tar.gz
29
30 elf_diff
31 "
32
33build() {
34 gpep517 build-wheel \
35 --wheel-dir .dist \
36 --output-fd 3 3>&1 >&2
37}
38
39check() {
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
45package() {
46 gpep517 install-wheel --destdir "$pkgdir" \
47 .dist/*.whl
48 install -Dm755 "$srcdir"/elf_diff "$pkgdir"/usr/bin/elf_diff
49}
50
51sha512sums="
52b1eef9954ceabf3a1936423131eacd71cf942a5d2f28419b3afac837b6b56cf81a9ff884f6e36495d0f61840aa9f5e68836960d29b0a7d7e00f4a0e938fcc141 elf_diff-0.7.1.tar.gz
531ca2c8c7325f78df0d4033fe7cc8ed2e1da2716e4407b10fbcdf38cededcd1113dcc7a74b1816dff84103119c894dd499b061cf9936f2ff18eebef632b494617 elf_diff
54"