diff options
author | Marian Buschsieweke <marian.buschsieweke@ovgu.de> | 2018-07-17 16:54:58 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-07-19 08:05:51 +0000 |
commit | 409aea15900c9364b91ec90c49423b4b02c33da8 (patch) | |
tree | e82c5e112aadcc5aeb81d936ce6d2d5996e3116e | |
parent | 147d45457a29854ce25fb50eab513092f71bc075 (diff) | |
download | aports-409aea15900c9364b91ec90c49423b4b02c33da8.tar.bz2 aports-409aea15900c9364b91ec90c49423b4b02c33da8.tar.xz |
testing/py-pymaging-png: New aport
PNG format support for pymaging
https://github.com/ojii/pymaging-png/
-rw-r--r-- | testing/py-pymaging-png/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/py-pymaging-png/APKBUILD b/testing/py-pymaging-png/APKBUILD new file mode 100644 index 0000000000..a5ee83562b --- /dev/null +++ b/testing/py-pymaging-png/APKBUILD @@ -0,0 +1,55 @@ +# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de> +pkgname=py-pymaging-png +_pkgname=pymaging-png +_commit=83d85c44e4b2342818e6c068065e031a9f81bb9f +pkgver=0.0.20130727 +pkgrel=0 +pkgdesc="PNG format support for pymaging" +url="https://github.com/ojii/$_pkgname/" +arch="noarch" +license="MIT custom" +depends="py2-${pkgname#py-} py3-${pkgname#py-}" +makedepends="python2-dev python3-dev py-setuptools" +checkdepends="py-pymaging" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$pkgname-$pkgver.tar.gz::https://github.com/ojii/$_pkgname/archive/$_commit.tar.gz" +builddir="$srcdir"/$_pkgname-$_commit + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + depends="python2 py2-pymaging" + _py python2 + rm -rf "$subpkgdir/usr/bin" +} + +_py3() { + depends="python3 py3-pymaging" + replaces="$pkgname" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +sha512sums="b0860355c66d30d026443f1a360ca639bfd953da2bf00cc2b25902294d23eb07c3dd94a6c08a588fab816a7b92395bf4b65bf7a78c397a4c4811224035f1cb92 py-pymaging-png-0.0.20130727.tar.gz" |