aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-graphviz/APKBUILD
blob: 6c4694b52995eed367215aef8727eb6a889585bf (plain) (blame)
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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py-graphviz
pkgver=1.3_rc2
_ver=${pkgver/_/}
pkgrel=0
pkgdesc="Python interface to Graphviz"
url="https://pypi.python.org/pypi/pygraphviz | http://graphviz.org/"
arch="all"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev graphviz-dev"
install=""
subpackages="$pkgname-doc"
source="https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-$_ver.tar.gz"

_builddir="$srcdir"/pygraphviz-pygraphviz-$_ver
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"
	export PYTHON=python2.7
	python setup.py build || return 1
}

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

md5sums="91f6d57dfc63cefa12c38eba3f09db09  pygraphviz-1.3rc2.tar.gz"
sha256sums="46737437bd872788b376aeddef9176def9f87339deed739f6769ee8dbe68121f  pygraphviz-1.3rc2.tar.gz"
sha512sums="f1ed6e52a07320701e788696b8dc46d0903bdbd740645f07658265bb9dea411b43d90d97ecb2ed658fec4c53fa966d89f5feef0aa62acb4157f6ba662475d876  pygraphviz-1.3rc2.tar.gz"