aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gnuplot/APKBUILD
blob: 39173af254946f5fde71c0e2a5cb4913d9b782af (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=gnuplot
pkgver=5.0.2
pkgrel=0
pkgdesc="Utility for plotting graphs"
url="http://www.gnuplot.info/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="cairo-dev pango-dev gd-dev lua5.2-dev readline-dev libpng-dev
	libjpeg-turbo-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/gnuplot/gnuplot/$pkgver/gnuplot-$pkgver.tar.gz"

_builddir="$srcdir"/gnuplot-$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"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-wxwidgets \
		--disable-qt \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="42a7eb5544ec8a43ef85228762d303ee  gnuplot-5.0.2.tar.gz"
sha256sums="5a2b31d375f56d29272193370705164cde49545a332841183bcca44f02b1d890  gnuplot-5.0.2.tar.gz"
sha512sums="44fb9fcb821139f9e61d86135d31a9308c3a46f10c96d08b342b64b14c942363dbc8af4fa233cb5ef0a6743280b5bf44572cabd838192128bfd6578b583ab0f0  gnuplot-5.0.2.tar.gz"