ayaports/user/py3-dumb-init/APKBUILD

34 lines
978 B
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=dumb-init
pkgname="py3-$_pyname"
pkgver=1.2.5
_pkgver=1.2.5.post1
2023-01-12 18:48:03 +00:00
pkgrel=1
2022-12-27 20:40:33 +00:00
arch="all"
pkgdesc="Simple wrapper script which proxies signals to a child"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$_pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$_pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$_pkgver
build() {
2023-01-12 18:48:03 +00:00
python3 setup.py build
2022-12-27 20:40:33 +00:00
}
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
2023-01-12 18:48:03 +00:00
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
2022-12-27 20:40:33 +00:00
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
8527ac64a4219d0bde3612b8153056b44203656aed86b1bd047b4649ee3f7e04e0c0a669841fc2f176875993d61d8d80c980a410bcd92bb8ddc9577b6980fa42 py3-dumb-init-1.2.5.post1.tar.gz
"