blob: 76ba2047d03685fd0e3f348df26189275af3b8c1 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $Id: PKGBUILD 151647 2012-02-29 10:28:02Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gnuplot
pkgver=4.4.4
pkgrel=2
pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
arch=('i686' 'x86_64')
url="http://www.gnuplot.info"
license=('custom')
depends=('readline' 'gd' 'wxgtk' 'cairo' 'libjpeg' 'lua')
makedepends=('texinfo' 'emacs' 'texlive-core' 'texlive-latexextra')
install=gnuplot.install
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
"lua_tikz.patch")
sha1sums=('d4f143eade1f8d8b27be44cbda431d37a71c6a31'
'd84518c7e46fc0912554c28ba1fc8cdb70d4ee30')
build() {
cd $srcdir/$pkgname-$pkgver
# upstram patch to fix lua/tikz terminal
patch -Np0 -i ${srcdir}/lua_tikz.patch
# fix default source location; use the GDFONTPATH variable to modify at runtime
sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c
sed -i -e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
-e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \
src/variable.c
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info \
--libexecdir=/usr/bin \
--with-gihdir=/usr/share/gnuplot \
--datadir=/usr/share \
--with-readline=gnu \
--with-texdir=$pkgdir/usr/share/texmf/tex/latex/gnuplot
make pkglibexecdir=/usr/bin
}
package() {
cd $srcdir/$pkgname-$pkgver
make prefix=$pkgdir/usr libexecdir=$pkgdir/usr/bin \
mandir=$pkgdir/usr/share/man \
infodir=$pkgdir/usr/share/info \
pkglibexecdir=$pkgdir/usr/bin \
GIHDIR=$pkgdir/usr/share/gnuplot \
datadir=$pkgdir/usr/share install
install -Dm644 lisp/dotemacs $pkgdir/usr/share/emacs/site-lisp/dotemacs
install -Dm644 Copyright $pkgdir/usr/share/licenses/$pkgname/Copyright
rm -f $pkgdir/usr/share/texmf-dist/ls-R
}
|