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

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Jul 14 01:03:37 UTC 2020


    Date: Tuesday, July 14, 2020 @ 01:03:36
  Author: svenstaro
Revision: 663568

Properly quote variables

Modified:
  blobby2/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-14 00:57:39 UTC (rev 663567)
+++ PKGBUILD	2020-07-14 01:03:36 UTC (rev 663568)
@@ -1,4 +1,4 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
 # Contributor: Urs Wolfer <uwolfer @ fwo.ch>
 
 pkgname=blobby2
@@ -20,7 +20,7 @@
             '8b7b85d8e02f8174054a724752d5d40c609820be1e5e06c4868dc0e383d4cf4befe73ab0e910e9838b70be3f7e106ee71ef1e04f0560fdde7bff6ca473fa81ec')
 
 prepare() {
-  cd $srcdir/blobby-$pkgver
+  cd "$srcdir"/blobby-$pkgver
   patch -Np2 -i ../ostream-include.patch # r1542 upstream
   sed -i "s|data|/usr/share/blobby|g" src/main.cpp
   sed -i "s|file\(filename\)|file(\"/usr/share/blobby\" + filename|g" src/main.cpp
@@ -27,20 +27,20 @@
 }
 
 build() {
-  cd $srcdir/blobby-$pkgver
+  cd "$srcdir"/blobby-$pkgver
   cmake -DCMAKE_INSTALL_PREFIX=/usr
   make
 }
 
 package() {
-  cd $srcdir/blobby-$pkgver
+  cd "$srcdir"/blobby-$pkgver
 
-  make DESTDIR=$pkgdir install
+  make DESTDIR="$pkgdir" install
 
   install -Dm644 data/Icon.bmp ${pkgdir}/usr/share/blobby/Icon.bmp
 
   # install .desktop file and icon
-  install -dm755 $pkgdir/usr/share/{applications,pixmaps}
-  install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications
-  install -m644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps
+  install -dm755 "$pkgdir"/usr/share/{applications,pixmaps}
+  install -m644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications
+  install -m644 "$srcdir"/$pkgname.png "$pkgdir"/usr/share/pixmaps
 }


More information about the arch-commits mailing list