aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-blockdiag/APKBUILD
blob: 8e911550569fb105cb298980862e5be7e2e9d946 (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-blockdiag
_pkgname=blockdiag
pkgver=1.2.4
pkgrel=0
pkgdesc="blockdiag generate block-diagram"
url="http://blockdiag.com"
arch="noarch"
license="ASL 2.0"
depends="python py-imaging py-funcparserlib py-setuptools py-webcolors"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_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="244334f60cc10b0cb73b5df5279bcdd1  blockdiag-1.2.4.tar.gz"
sha256sums="5c153f879762066196d2ebfbba0efcdfb30abf8132299ddd81c6dc6bc4eaf5d9  blockdiag-1.2.4.tar.gz"
sha512sums="14c10bfc392645ca37dafd32380f7537fbeb47769684cba2d26eb961077c992f7284b0465adfb4136d9ecb5de7e0a90e2973652ff3c7ab3c983072ed86e27949  blockdiag-1.2.4.tar.gz"