summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-02-12 13:36:45 +0300
committerCaleb Maclennan2020-02-12 13:36:45 +0300
commitfe6de0fd5e109892fb712df3a99925af10156ae2 (patch)
tree1c507294a888a38f6121c86b42ffc3e701b7f6a8
parent067f85da54076c41b3832adb3a38b54448c89a45 (diff)
downloadaur-fe6de0fd5e109892fb712df3a99925af10156ae2.tar.gz
Cleanup bash shell quoting using shellharden
-rw-r--r--PKGBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ed3203566f9..c2347b2961b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_pkgname=penlight
-pkgname=("lua-${_pkgname}-git" "lua52-${_pkgname}-git" "lua51-${_pkgname}-git")
+pkgname=("lua-$_pkgname-git" "lua52-$_pkgname-git" "lua51-$_pkgname-git")
pkgver=1.7.0.r4.ge469fa0
pkgrel=2
pkgdesc='Lua libraries for on input data handling, functional programming, and OS interface'
@@ -10,27 +10,27 @@ url='https://tieske.github.io/Penlight'
arch=('any')
license=('MIT')
_lua_deps=('filesystem')
-source=("${_pkgname}::git+https://github.com/Tieske/Penlight.git")
+source=("$_pkgname::git+https://github.com/Tieske/Penlight.git")
sha256sums=('SKIP')
pkgver() {
- cd ${_pkgname}
+ cd "$_pkgname"
git describe --tags --abbrev=7 HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
check() {
- cd ${_pkgname}
- export LUA_PATH="${PWD}/lua/?/init.lua;${PWD}/lua/?.lua;$(lua -e 'print(package.path)')"
+ cd "$_pkgname"
+ export LUA_PATH="$PWD/lua/?/init.lua;$PWD/lua/?.lua;$(lua -e 'print(package.path)')"
lua run.lua
}
_package_helper() {
- cd ${_pkgname}
- install -Dm 644 lua/pl/* -t "${pkgdir}/usr/share/lua/$1/pl"
- install -Dm 644 CONTRIBUTING.md CHANGELOG.md README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 docs/manual/* -t "${pkgdir}/usr/share/doc/${pkgname}/manual"
- install -Dm 644 examples/* -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
- install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ cd "$_pkgname"
+ install -Dm 644 lua/pl/* -t "$pkgdir/usr/share/lua/$1/pl"
+ install -Dm 644 CONTRIBUTING.md CHANGELOG.md README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 docs/manual/* -t "$pkgdir/usr/share/doc/$pkgname/manual"
+ install -Dm 644 examples/* -t "$pkgdir/usr/share/doc/$pkgname/examples"
+ install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
}
package_lua-penlight-git() {