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

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Jul 14 00:52:57 UTC 2020


    Date: Tuesday, July 14, 2020 @ 00:52:56
  Author: svenstaro
Revision: 663564

Properly quote variables

Modified:
  teeworlds/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-14 00:52:08 UTC (rev 663563)
+++ PKGBUILD	2020-07-14 00:52:56 UTC (rev 663564)
@@ -28,8 +28,8 @@
 
   cd teeworlds
   git submodule init
-  git config submodule."datasrc/languages".url ${srcdir}/teeworlds-translation
-  git config submodule."datasrc/maps".url ${srcdir}/teeworlds-maps
+  git config submodule."datasrc/languages".url "${srcdir}"/teeworlds-translation
+  git config submodule."datasrc/maps".url "${srcdir}"/teeworlds-maps
   git submodule update
 }
 
@@ -46,16 +46,16 @@
   cd teeworlds
 
   # Install data files
-  mkdir -p ${pkgdir}/usr/share/${pkgname}/data
-  cp -r build/x86_64/release/data/* ${pkgdir}/usr/share/${pkgname}/data
+  mkdir -p "${pkgdir}"/usr/share/${pkgname}/data
+  cp -r build/x86_64/release/data/* "${pkgdir}"/usr/share/${pkgname}/data
 
-  install -Dm755 build/x86_64/release/${pkgname} ${pkgdir}/usr/bin/${pkgname}
-  install -Dm755 build/x86_64/release/${pkgname}_srv ${pkgdir}/usr/bin/${pkgname}_srv
+  install -Dm755 build/x86_64/release/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
+  install -Dm755 build/x86_64/release/${pkgname}_srv "${pkgdir}"/usr/bin/${pkgname}_srv
 
-  install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
-  install -Dm644 ${srcdir}/${pkgname}-0.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
+  install -Dm644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
+  install -Dm644 "${srcdir}"/${pkgname}-0.png "${pkgdir}"/usr/share/pixmaps/${pkgname}.png
 
-  install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
+  install -Dm644 license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
 }
 
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list