mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/elf_diff: build with gpep517
This commit is contained in:
parent
c5af77a027
commit
aedbf88ebb
@ -2,7 +2,7 @@
|
||||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
||||
pkgname=elf_diff
|
||||
pkgver=0.7.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Tool to compare ELF binaries"
|
||||
url="https://github.com/noseglasses/elf_diff"
|
||||
# s390x: blocked by py3-progressbar2
|
||||
@ -20,6 +20,7 @@ depends="
|
||||
py3-yaml
|
||||
python3
|
||||
"
|
||||
makedepends="py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
options="!check" # unit tests fail
|
||||
|
||||
@ -31,15 +32,20 @@ source="
|
||||
"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
PYTHONPATH="$PWD" pytest
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
install -Dm755 "$srcdir"/elf_diff "$pkgdir"/usr/bin/elf_diff
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user