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

Antonio Rojas arojas at gemini.archlinux.org
Sun Mar 13 19:58:36 UTC 2022


    Date: Sunday, March 13, 2022 @ 19:58:35
  Author: arojas
Revision: 439580

Add gnuplot-demos (FS#56380)

Modified:
  gnuplot/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-13 19:25:34 UTC (rev 439579)
+++ PKGBUILD	2022-03-13 19:58:35 UTC (rev 439580)
@@ -2,9 +2,10 @@
 # Contributor: damir <damir at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 
-pkgname=gnuplot
+pkgbase=gnuplot
+pkgname=(gnuplot gnuplot-demos)
 pkgver=5.4.3
-pkgrel=2
+pkgrel=4
 pkgdesc='Plotting package which outputs to X11, PostScript, PNG, GIF, and others' 
 arch=(x86_64)
 url='http://www.gnuplot.info'
@@ -30,7 +31,7 @@
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgbase-$pkgver
 
   MAKEINFO=/usr/bin/makeinfo \
   WX_CONFIG=/usr/bin/wx-config-gtk3 \
@@ -45,8 +46,8 @@
   make pkglibexecdir=/usr/bin
 }
 
-package() {
-  cd $pkgname-$pkgver
+package_gnuplot() {
+  cd $pkgbase-$pkgver
   make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install
   make DESTDIR="$pkgdir" install -C demo
 
@@ -54,3 +55,10 @@
 
   rm -f "$pkgdir"/usr/share/texmf-dist/ls-R
 }
+
+package_gnuplot-demos() {
+  pkgdesc='Demos for gnuplot'
+  depends=(gnuplot)
+
+  install -Dm644 $pkgbase-$pkgver/demo/*.{dem,dat} -t "$pkgdir"/usr/share/gnuplot/demos
+}



More information about the arch-commits mailing list