blob: d25dc9a7ff0a425177c2a634338037eb1f694314 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py-pymaging
_pkgname=pymaging
_commit=596a08fce5664e58d6e8c96847393fbe987783f2
pkgver=0.0.20130908
pkgrel=1
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"
|