aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnuplot/APKBUILD
blob: 7cef3a3a9de8096a892f1123a9e64d1b077bc7ec (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: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=gnuplot
pkgver=5.2.5
pkgrel=0
pkgdesc="Utility for plotting graphs"
url="http://www.gnuplot.info/"
arch="all"
license="MIT"
makedepends="cairo-dev pango-dev gd-dev lua5.3-dev readline-dev
	libpng-dev libjpeg-turbo-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$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
	make
}

check() {
	make GNUTERM=dumb -C "$builddir" check
}

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

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

sha512sums="e516f33b678963e13c2464679efec6c387e57df4f92a57d319baec8bbd29ab46e545cd5d70b2d17644d734040892769da745b8a5441467dcdb8f9c892a493ca4  gnuplot-5.2.5.tar.gz"