diff options
author | Étienne Deparis | 2022-09-21 10:52:27 +0200 |
---|---|---|
committer | Étienne Deparis | 2022-09-21 10:52:27 +0200 |
commit | 0465d219b0ab4eefc4369900a8c515984c8d21f9 (patch) | |
tree | 91c6ed313455a129c9494767de58308681353b58 | |
parent | a2554b7baeee4cb14e0917ec92262ab15254d8e0 (diff) | |
download | aur-fortune-tontons-flingueurs-fr.tar.gz |
Protect srcdir and pkgdir variable when they contain whitespaces
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 7 insertions, 9 deletions
@@ -1,9 +1,9 @@ -# Generated by makepkg 5.0.1 -# Fri Mar 4 09:16:02 UTC 2016 +# Generated by makepkg 6.0.1 +# Wed Sep 21 08:51:23 UTC 2022 pkgbase = fortune-tontons-flingueurs-fr pkgdesc = Fortune cookies from french movie Les Tontons Flingeurs pkgver = 20160304 - pkgrel = 1 + pkgrel = 2 url = http://fr.wikiquote.org/wiki/Les_Tontons_flingueurs arch = any license = unknown @@ -13,4 +13,3 @@ pkgbase = fortune-tontons-flingueurs-fr sha1sums = 2f8fe0fe837aa22e010989fe27e0801288965203 pkgname = fortune-tontons-flingueurs-fr - @@ -2,7 +2,7 @@ # Maintainer: Étienne Deparis <etienne@depar.is> pkgname=fortune-tontons-flingueurs-fr pkgver=20160304 -pkgrel=1 +pkgrel=2 pkgdesc="Fortune cookies from french movie Les Tontons Flingeurs" arch=('any') url="http://fr.wikiquote.org/wiki/Les_Tontons_flingueurs" @@ -13,13 +13,12 @@ source=(tontonsflingueurs) sha1sums=('2f8fe0fe837aa22e010989fe27e0801288965203') build() { - cd ${srcdir} fold -w 80 -s tontonsflingueurs > tontonsflingueurs.folded || exit 1 strfile -r tontonsflingueurs.folded tontonsflingueurs.dat || exit 2 } package() { - install -d ${pkgdir}/usr/share/fortune/fr - install -m644 ${srcdir}/tontonsflingueurs.folded ${pkgdir}/usr/share/fortune/fr/tontonsflingueurs - install -m644 ${srcdir}/tontonsflingueurs.dat ${pkgdir}/usr/share/fortune/fr/tontonsflingueurs.dat + install -d "$pkgdir/usr/share/fortune/fr" + install -m644 "$srcdir/tontonsflingueurs.folded" "$pkgdir/usr/share/fortune/fr/tontonsflingueurs" + install -m644 "$srcdir/tontonsflingueurs.dat" "$pkgdir/usr/share/fortune/fr/tontonsflingueurs.dat" } |