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

Andreas Radke andyrtr at archlinux.org
Mon Sep 23 19:01:05 UTC 2019


    Date: Monday, September 23, 2019 @ 19:01:04
  Author: andyrtr
Revision: 363288

fix quoting

Modified:
  cups-pdf/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-23 18:59:24 UTC (rev 363287)
+++ PKGBUILD	2019-09-23 19:01:04 UTC (rev 363288)
@@ -16,7 +16,7 @@
 md5sums=('5071bf192b9c6eb5ada4337b6917b939')
 
 build() {
-  cd $srcdir/$pkgname-$pkgver/src
+  cd "$srcdir"/$pkgname-$pkgver/src
   [ -z "$CC" ] && CC=gcc
 #  $CC $CFLAGS -Wall -o cups-pdf cups-pdf.c
   $CC $CFLAGS -s cups-pdf.c -o cups-pdf -lcups  
@@ -23,22 +23,22 @@
 }
 
 package() {
-  cd $srcdir/$pkgname-$pkgver/src
-  install -D -m700 cups-pdf $pkgdir/usr/lib/cups/backend/cups-pdf
+  cd "$srcdir"/$pkgname-$pkgver/src
+  install -D -m700 cups-pdf "$pkgdir"/usr/lib/cups/backend/cups-pdf
 
   # Install Postscript Color printer
   cd ../extra
-  install -D -m644 CUPS-PDF_noopt.ppd $pkgdir/usr/share/cups/model/CUPS-PDF_noopt.ppd
-  install -D -m644 CUPS-PDF_opt.ppd $pkgdir/usr/share/cups/model/CUPS-PDF_opt.ppd
+  install -D -m644 CUPS-PDF_noopt.ppd "$pkgdir"/usr/share/cups/model/CUPS-PDF_noopt.ppd
+  install -D -m644 CUPS-PDF_opt.ppd "$pkgdir2/usr/share/cups/model/CUPS-PDF_opt.ppd
 
   # Install config file
-  install -D -m644 cups-pdf.conf $pkgdir/etc/cups/cups-pdf.conf
+  install -D -m644 cups-pdf.conf "$pkgdir"/etc/cups/cups-pdf.conf
 
   # Install docs
   install -D -m 644 ../README "$pkgdir"/usr/share/doc/$pkgname/README
   
   # use cups group from cups pkg FS#57311/FS#56818/FS#57313
-  chgrp -R cups ${pkgdir}/etc/cups
-  sed -i "s:### Default\: lp:### Default\: cups:" ${pkgdir}/etc/cups/cups-pdf.conf
-  sed -i "s:#Grp lp:Grp cups:" ${pkgdir}/etc/cups/cups-pdf.conf
+  chgrp -R cups "${pkgdir}"/etc/cups
+  sed -i "s:### Default\: lp:### Default\: cups:" "${pkgdir}"/etc/cups/cups-pdf.conf
+  sed -i "s:#Grp lp:Grp cups:" "${pkgdir}"/etc/cups/cups-pdf.conf
 }


More information about the arch-commits mailing list