# Contributor: William Pitcock # Maintainer: Fabian Affolter pkgname=gnuplot pkgver=5.0.6 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/$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 \ || 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 } sha512sums="7f9b05725a8594dcfbf1f1fc8f1db9bf45e1b6841fa1089b2c2528a3e36f71baab16d5fbeb027e4dd3618461a4895d037cb9f43781bfee2cb078cb9583567d8d gnuplot-5.0.6.tar.gz"