aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pyx/APKBUILD
blob: cbbbf8e3d49b9b3c917b1e192e5b481c92e89489 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=pyx
_pkgname=PyX
pkgver=0.12
pkgrel=0
pkgdesc="Python graphics package"
url="http://pyx.sourceforge.net/"
arch="noarch"
license="GPL2"
depends="python"
depends_dev=""
makedepends="$depends_dev python-dev"
install=""
subpackages=""
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="ce5fbaf4edf8125e0cf4de24d88d784f  PyX-0.12.tar.gz"
sha256sums="859285bc2bd51739b7eb72ecf4f7bc81355b28dcbf81e887d8cbf295526a05f2  PyX-0.12.tar.gz"
sha512sums="8e6d1bcc898a1b33e290ca8feb8084fb34b1bff17694ad469951533133b44b8f51912747bc034c74392d7903b3acc34afe2e35b2d34fe224e634db22447c4614  PyX-0.12.tar.gz"