summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorÉtienne Deparis2022-09-21 11:55:34 +0200
committerÉtienne Deparis2022-09-21 11:55:34 +0200
commitaec4308333ee5164a9981eace889c2ea210915d7 (patch)
tree579d70a4931b4aabe47a7c402798962c08eae485 /PKGBUILD
parente26164d55ae3e77f13590945281988dd19dee491 (diff)
downloadaur-ttf-dm-mono-git.tar.gz
Protect srcdir variable when it contains whitespaces
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 220e3dac8c9a..b17751554cbf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=ttf-dm-mono-git
_pkgname=ttf-dm-mono
pkgver=1.000r5.57fadab
-pkgrel=1
+pkgrel=2
pkgdesc="A three weight, three style family designed for DeepMind."
arch=("any")
url="https://github.com/googlefonts/dm-mono"
@@ -15,12 +15,12 @@ provides=("ttf-dm-mono")
conflicts=("ttf-dm-mono")
pkgver() {
- cd $srcdir/dm-mono
+ cd "$srcdir/dm-mono"
printf "1.000r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd $srcdir/dm-mono
+ cd "$srcdir/dm-mono"
install -d -m755 "$pkgdir/usr/share/licenses/$_pkgname"
install -D -m644 README.md "$pkgdir/usr/share/licenses/$_pkgname/README.md"
install -D -m644 AUTHORS.txt "$pkgdir/usr/share/licenses/$_pkgname/AUTHORS.txt"