summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2018-09-01 16:17:56 +0300
committerCaleb Maclennan2018-09-01 16:17:56 +0300
commit3fcb745f9d64a3d2d495fc4be30e0b7c46173feb (patch)
treef7311c150a5a140a8b4f59d6851f54af67a77d3a
parent957e3577130f0fbe02c2f8dedbf20c3e23e410f1 (diff)
downloadaur-3fcb745f9d64a3d2d495fc4be30e0b7c46173feb.tar.gz
Cleanup bash shell quoting using shellharden
-rw-r--r--PKGBUILD30
1 files changed, 15 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 075d2d46a91..4448430a922 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: coderkun <olli@derkun.de>
_upname=RSSOwl
-pkgname=${_upname,,}
+pkgname="${_upname,,}"
pkgver=2.2.1
pkgrel=5
pkgdesc="A java based RSS feed reader with Google Reader synchronization"
@@ -11,32 +11,32 @@ url='http://rssowl.org/'
license=('EPL')
depends=('java-runtime' 'alsa-lib' 'gtk2' 'gconf' 'hunspell' 'libxt' 'nss')
install=rssowl.install
-source=("https://github.com/${pkgname}/${_upname}/releases/download/${pkgver}/${_upname}.${pkgver}.Linux-x64.zip"
- "${pkgname}.desktop")
+source=("https://github.com/$pkgname/$_upname/releases/download/$pkgver/$_upname.$pkgver.Linux-x64.zip"
+ "$pkgname.desktop")
sha256sums=('ca79aca7f141d30d550f46d47616e5f1d5a816d7496a4cb76dfc7a0c281975d7'
'197d0f1ffc59f5046dc455f485b7535ae2143315a498338911eafbf3cc62eb42')
build() {
- cd "${srcdir}/${pkgname}"
+ cd "$srcdir/$pkgname"
- echo -e "#!/bin/sh\n\n/usr/share/${pkgname}/${_upname} \"\${@}\"" > "${pkgname}"
+ echo -e "#!/bin/sh\n\n/usr/share/$pkgname/$_upname \"\${@}\"" > "$pkgname"
sed -i -e 's:moz_libdir=.*:moz_libdir=/usr/share/rssowl/xulrunner:' xulrunner/xulrunner
}
package() {
- cd "${srcdir}"
+ cd "$srcdir"
# xulrunner 1.9 (shipped by RSSOwl) expects /lib/libhunspell-1.2.so.0
if ! [ -e "libhunspell-1.2.so.0" ]; then
ln -s "/usr/lib/libhunspell.so" "libhunspell-1.2.so.0"
fi
- install -D "libhunspell-1.2.so.0" "${pkgdir}/usr/lib/libhunspell-1.2.so.0"
+ install -D "libhunspell-1.2.so.0" "$pkgdir/usr/lib/libhunspell-1.2.so.0"
- cd "${srcdir}/${pkgname}"
- mkdir -p "${pkgdir}/usr/share/${pkgname}"
- cp -r * "${pkgdir}/usr/share/${pkgname}"
- chmod +x "${pkgdir}/usr/share/${pkgname}/xulrunner/xulrunner"
- chmod +x "${pkgdir}/usr/share/${pkgname}/xulrunner/xulrunner-bin"
- chmod +x "${pkgdir}/usr/share/${pkgname}/xulrunner/run-mozilla.sh"
- install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
- install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ cd "$srcdir/$pkgname"
+ mkdir -p "$pkgdir/usr/share/$pkgname"
+ cp -r * "$pkgdir/usr/share/$pkgname"
+ chmod +x "$pkgdir/usr/share/$pkgname/xulrunner/xulrunner"
+ chmod +x "$pkgdir/usr/share/$pkgname/xulrunner/xulrunner-bin"
+ chmod +x "$pkgdir/usr/share/$pkgname/xulrunner/run-mozilla.sh"
+ install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}