1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Ronald van Haren <ronald.archlinux.org>
3 # Contributor: damir <damir@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
7 pkgname=(gnuplot gnuplot-demos)
10 pkgdesc='Plotting package which outputs to X11, PostScript, PNG, GIF, and others'
12 url='http://www.gnuplot.info'
14 depends=(gd wxwidgets-gtk3 lua qt5-svg libcerf libcaca)
15 makedepends=(texlive-core emacs texlive-latexextra qt5-tools)
16 source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
18 sha256sums=('66f679115dd30559e110498fc94d926949d4d370b4999a042e724b8e910ee478'
19 'bfd8a61abbf4491c74225cb9fd252619d4fc29751838bcb4c0639ffe05a00695')
24 # fix default source location; use the GDFONTPATH variable to modify at runtime
25 sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c
27 sed -i -e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
28 -e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \
31 patch -p1 < "$srcdir"/lua53_compat.patch
37 MAKEINFO=/usr/bin/makeinfo \
38 ./configure --prefix=/usr \
39 --libexecdir=/usr/bin \
40 --with-gihdir=/usr/share/gnuplot \
42 --with-bitmap-terminals \
43 --with-wx-single-threaded \
45 --with-texdir=/usr/share/texmf/tex/latex/gnuplot
46 make pkglibexecdir=/usr/bin
51 make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install
52 make DESTDIR="$pkgdir" install -C demo
54 install -Dm644 Copyright -t "$pkgdir"/usr/share/licenses/$pkgname
56 rm -f "$pkgdir"/usr/share/texmf-dist/ls-R
59 package_gnuplot-demos() {
60 pkgdesc='Demos for gnuplot'
63 install -Dm644 $pkgbase-$pkgver/demo/*.{dem,dat} -t "$pkgdir"/usr/share/gnuplot/demos