# Contributor: William Pitcock # Maintainer: Fabian Affolter pkgname=gnuplot pkgver=5.2.4 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="b276e379fe5e493a176750d9ccd84a8b02c8784b1d8701dc4252945a7e9e0455eebba0085d0d98824a4acf5da0def3b71ad3362803365a32e7c29f18af7854bb gnuplot-5.2.4.tar.gz"