aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-gnuplot/APKBUILD
blob: 7c4a2a6576bc6e1be897b82ac818a29bf9795a89 (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=py-gnuplot
_pkgname=gnuplot-py
pkgver=1.8
pkgrel=0
pkgdesc="A Python interface to the gnuplot plotting program."
url="http://gnuplot-py.sourceforge.net"
arch="noarch"
license="LGPL"
depends="python py-numpy gnuplot"
depends_dev=""
makedepends="$depends_dev python2-dev"
install=""
subpackages=""
source="$_pkgname-$pkgver.tar.gz::http://prdownloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz?download"

_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="abd6f571e7aec68ae7db90a5217cd5b1  gnuplot-py-1.8.tar.gz"
sha256sums="ab339be7847d30a8acfd616f27b5021bfde0999b7bf2d68400fbe62c53106e21  gnuplot-py-1.8.tar.gz"
sha512sums="748dc95ea53acd362f67c821a3cc7cf23b6329c2dd13c130c91e1c9f89afe1ffd84619ed321923c65455adf86ee58976dd6dd187881ee3ede5e0f5f551fb027d  gnuplot-py-1.8.tar.gz"