mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 18:26:39 +02:00
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
pkgname=py3-pymaging-png
|
|
_pkgname=pymaging-png
|
|
_commit=83d85c44e4b2342818e6c068065e031a9f81bb9f
|
|
pkgver=0.0.20130727
|
|
pkgrel=10
|
|
pkgdesc="PNG format support for pymaging"
|
|
url="https://github.com/ojii/pymaging-png"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-pymaging"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ojii/$_pkgname/archive/$_commit.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$_commit
|
|
|
|
replaces="py-pymaging-png" # Backwards compatibility
|
|
provides="py-pymaging-png=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m unittest discover
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
b0860355c66d30d026443f1a360ca639bfd953da2bf00cc2b25902294d23eb07c3dd94a6c08a588fab816a7b92395bf4b65bf7a78c397a4c4811224035f1cb92 py3-pymaging-png-0.0.20130727.tar.gz
|
|
"
|