aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-pymaging/APKBUILD
blob: 064dd43e3a52b561ebc9fdb6f18fa446f435c840 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                               
        



                                        
        















                                                                                           




                                   





                                        
                                  












                                                                                                                                                                              
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py-pymaging
_pkgname=pymaging
_commit=596a08fce5664e58d6e8c96847393fbe987783f2
pkgver=0.0.20130908
pkgrel=2
pkgdesc="Pure Python imaging library"
url="https://github.com/ojii/$_pkgname/"
arch="noarch"
license="BSD-3-Clause MIT custom"
depends=
makedepends="python2-dev python3-dev py-setuptools"
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() {
	_py python2
	rm -rf "$subpkgdir/usr/bin"
}

_py3() {
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	depends="$depends $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="757431eb53ee839ae8f341c5021b96a704a78434bb81f843de36c0b8274ca8de603ca5f04bf6e38a5dae39d42be2da05f03119235fe5ca5d34bd10fa30faa813  py-pymaging-0.0.20130908.tar.gz"