1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/py3-pypng/APKBUILD
2021-04-05 18:19:25 +00:00

31 lines
937 B
Text

# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-pypng
pkgver=0.0.20
pkgrel=1
pkgdesc="Pure Python PNG image encoder/decoder"
url="https://github.com/drj11/pypng"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
py3-setuptools
"
_pyname="pypng"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
python-3.9.patch"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 code/test_png.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="4f84e9b9cc68c0ad7e4558f0f46c54b0f091561f1a3679ac0679d8a1f1ab9a06493d71bf9df4db5deb6bedbdfa53bb1775ee51204133309eba962077102fdcdd pypng-0.0.20.tar.gz
48c74a646b6e01b354b252b7d2c25e744c324c753978a56608b308744ff7fd0e556595259816c1221bdfbdf5cb73ee5c146076205fbae5e21a51a838a4f694fb python-3.9.patch"