sbcl 2.3.0 rebuild
[arch-packages.git] / gnuplot / trunk / PKGBUILD
blob3c3bb7dfa4e3c67e48ee2548467635e5b1136921
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>
6 pkgbase=gnuplot
7 pkgname=(gnuplot gnuplot-demos)
8 pkgver=5.4.5
9 pkgrel=1
10 pkgdesc='Plotting package which outputs to X11, PostScript, PNG, GIF, and others' 
11 arch=(x86_64)
12 url='http://www.gnuplot.info'
13 license=(custom)
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
17         lua53_compat.patch)
18 sha256sums=('66f679115dd30559e110498fc94d926949d4d370b4999a042e724b8e910ee478'
19             'bfd8a61abbf4491c74225cb9fd252619d4fc29751838bcb4c0639ffe05a00695')
21 prepare() {
22   cd $pkgname-$pkgver
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|' \
29   src/variable.c
31   patch -p1 < "$srcdir"/lua53_compat.patch
34 build() {
35   cd $pkgbase-$pkgver
37   MAKEINFO=/usr/bin/makeinfo \
38   ./configure --prefix=/usr \
39               --libexecdir=/usr/bin \
40               --with-gihdir=/usr/share/gnuplot \
41               --with-readline=gnu \
42               --with-bitmap-terminals \
43               --with-wx-single-threaded \
44               --with-caca \
45               --with-texdir=/usr/share/texmf/tex/latex/gnuplot
46   make pkglibexecdir=/usr/bin
49 package_gnuplot() {
50   cd $pkgbase-$pkgver
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'
61   depends=(gnuplot)
63   install -Dm644 $pkgbase-$pkgver/demo/*.{dem,dat} -t "$pkgdir"/usr/share/gnuplot/demos