blob: c0715c2ae9445383a520e6db40a0db0c5f77ab46 (
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
59
60
|
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
_pkgname=gnuplot
pkgname=gnuplot-svg
pkgver=5.4.0
pkgrel=1
pkgdesc="Plotting package. Only SVG terminal support (for web-servers)"
arch=(x86_64)
url="http://www.gnuplot.info"
license=(custom)
depends=(readline gnutls)
provides=(gnuplot)
conflicts=(gnuplot)
source=("https://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha1sums=('b4660dff7d047a453c55fd77faba11f63bb2d5ed')
prepare() {
cd ${_pkgname}-${pkgver}
# 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
}
build() {
cd ${_pkgname}-${pkgver}
MAKEINFO=/usr/bin/makeinfo WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
--libexecdir=/usr/bin \
--disable-wxwidgets \
--with-x=no \
--with-gihdir=/usr/share/gnuplot \
--with-readline=gnu \
--with-bitmap-terminals \
--with-qt=no \
--without-latex \
--disable-x11-mbfonts \
--disable-x11-external \
--without-libcerf \
--with-aquaterm=no \
--with-gd=no \
--without-cairo \
--without-lua
make pkglibexecdir=/usr/bin
}
package() {
cd ${_pkgname}-${pkgver}
make pkglibexecdir=/usr/bin DESTDIR="${pkgdir}" install
install -Dm644 Copyright "${pkgdir}/usr/share/licenses/$_pkgname/Copyright"
rm -f "${pkgdir}/usr/share/texmf-dist/ls-R"
}
|