[arch-commits] Commit in gnuplot/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Mon Jan 31 22:23:28 UTC 2022


    Date: Monday, January 31, 2022 @ 22:23:27
  Author: arojas
Revision: 435654

Add libcaca support (FS#57538)

Modified:
  gnuplot/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-31 22:21:13 UTC (rev 435653)
+++ PKGBUILD	2022-01-31 22:23:27 UTC (rev 435654)
@@ -4,20 +4,20 @@
 
 pkgname=gnuplot
 pkgver=5.4.3
-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' 'wxgtk3' 'cairo' 'libjpeg' 'lua' 'qt5-svg' 'gnutls' 'libcerf') 
-makedepends=('texinfo' 'texlive-core' 'emacs' 'texlive-latexextra' 'qt5-tools')
-source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
-        "lua53_compat.patch")
-sha1sums=('c4b60fd7a700b22fa62b14829cbb0e17911627c9'
-          '9005fa9e4da91ceedb8ccd1d761866e7b064f8b1')
+pkgrel=2
+pkgdesc='Plotting package which outputs to X11, PostScript, PNG, GIF, and others' 
+arch=(x86_64)
+url='http://www.gnuplot.info'
+license=(custom)
+depends=(gd wxgtk3 lua qt5-svg libcerf libcaca) 
+makedepends=(texlive-core emacs texlive-latexextra qt5-tools)
+source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+        lua53_compat.patch)
+sha256sums=('51f89bbab90f96d3543f95235368d188eb1e26eda296912256abcd3535bd4d84'
+            'bfd8a61abbf4491c74225cb9fd252619d4fc29751838bcb4c0639ffe05a00695')
 
 prepare() {
-  cd ${pkgname}-${pkgver}
+  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
@@ -30,23 +30,27 @@
 }
 
 build() {
-  cd ${pkgname}-${pkgver}
+  cd $pkgname-$pkgver
 
-  MAKEINFO=/usr/bin/makeinfo WX_CONFIG=/usr/bin/wx-config-gtk3 ./configure --prefix=/usr \
+  MAKEINFO=/usr/bin/makeinfo \
+  WX_CONFIG=/usr/bin/wx-config-gtk3 \
+  ./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
+  cd $pkgname-$pkgver
+  make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install -C demo
 
-  install -Dm644 Copyright "${pkgdir}/usr/share/licenses/$pkgname/Copyright"
+  install -Dm644 Copyright -t "$pkgdir"/usr/share/licenses/$pkgname
 
-  rm -f "${pkgdir}/usr/share/texmf-dist/ls-R"
+  rm -f "$pkgdir"/usr/share/texmf-dist/ls-R
 }



More information about the arch-commits mailing list