summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Williams2018-02-17 12:02:56 +1300
committerSamuel Williams2018-02-17 12:02:56 +1300
commita169a46143c3f5f160e833faa9bc472f61810a40 (patch)
tree7c04486f80e5929a1bfe7ba9e8452f65033ed46c
downloadaur-a169a46143c3f5f160e833faa9bc472f61810a40.tar.gz
Add support for libcaca
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD55
-rw-r--r--lua53_compat.patch13
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..909be68a14c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = gnuplot
+ pkgdesc = Plotting package which outputs to X11, PostScript, PNG, GIF, and others
+ pkgver = 5.2.2
+ pkgrel = 1
+ url = http://www.gnuplot.info
+ arch = x86_64
+ license = custom
+ makedepends = texinfo
+ makedepends = texlive-core
+ makedepends = emacs
+ makedepends = texlive-latexextra
+ makedepends = qt5-tools
+ depends = readline
+ depends = gd
+ depends = wxgtk2
+ depends = cairo
+ depends = libjpeg
+ depends = lua
+ depends = qt5-svg
+ depends = libcaca
+ depends = gnutls
+ source = https://downloads.sourceforge.net/sourceforge/gnuplot/gnuplot-5.2.2.tar.gz
+ source = lua53_compat.patch
+ sha1sums = fc39158851f39e48136d2bdd3f753bf46a99965c
+ sha1sums = 9005fa9e4da91ceedb8ccd1d761866e7b064f8b1
+
+pkgname = gnuplot
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a5b0b687a87
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=gnuplot
+pkgver=5.2.2
+pkgrel=1
+pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
+arch=('x86_64')
+url="http://www.gnuplot.info"
+license=('custom')
+depends=('readline' 'gd' 'wxgtk2' 'cairo' 'libjpeg' 'lua' 'qt5-svg' 'libcaca' 'gnutls')
+makedepends=('texinfo' 'texlive-core' 'emacs' 'texlive-latexextra' 'qt5-tools')
+source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+ "lua53_compat.patch")
+sha1sums=('fc39158851f39e48136d2bdd3f753bf46a99965c'
+ '9005fa9e4da91ceedb8ccd1d761866e7b064f8b1')
+
+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
+
+ patch -p1 < "$srcdir"/lua53_compat.patch
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ MAKEINFO=/usr/bin/makeinfo WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
+ --libexecdir=/usr/bin \
+ --with-gihdir=/usr/share/gnuplot \
+ --with-readline=gnu \
+ --with-bitmap-terminals \
+ --with-wx-single-threaded \
+ --with-caca \
+ --with-texdir=/usr/share/texmf/tex/latex/gnuplot
+ 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"
+}
+
diff --git a/lua53_compat.patch b/lua53_compat.patch
new file mode 100644
index 00000000000..9d3be770ae0
--- /dev/null
+++ b/lua53_compat.patch
@@ -0,0 +1,13 @@
+diff --git a/term/lua.trm b/term/lua.trm
+index af63d68..474221f 100644
+--- a/term/lua.trm
++++ b/term/lua.trm
+@@ -110,6 +110,8 @@ TERM_PUBLIC void LUA_boxed_text __PROTO((unsigned int, unsigned int, int));
+ # define LUA_EXTERNAL_IMAGES 1
+ #endif
+
++
++#define LUA_COMPAT_APIINTCASTS
+ #include <lua.h>
+ #include <lualib.h>
+ #include <lauxlib.h>