aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnuplot/APKBUILD
blob: 3a9e129b8406b861b244814b68b9dc6122aaa202 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=gnuplot
pkgver=5.0.5
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"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-stats \
		--disable-wxwidgets \
		--disable-qt \
		|| return 1
	make || return 1
}

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

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -m644 BUGS ChangeLog NEWS PGPKEYS PORTING README* \
		"$pkgdir"/usr/share/doc/$pkgname/ || return 1
}

md5sums="c5e96fca73afbee4f57cbc1bfce6b3b8  gnuplot-5.0.5.tar.gz"
sha256sums="25f3e0bf192e01115c580f278c3725d7a569eb848786e12b455a3fda70312053  gnuplot-5.0.5.tar.gz"
sha512sums="fd6efc3a869850fa1939a4c833c776395efaaaf6dccc63e3626cee2e39938923b06314368802155adf711ae3e5ca0e3dd1a88be348e8571f9d0be8790240c62c  gnuplot-5.0.5.tar.gz"