summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.shellcheckrc6
-rw-r--r--PKGBUILD2
2 files changed, 7 insertions, 1 deletions
diff --git a/.shellcheckrc b/.shellcheckrc
new file mode 100644
index 00000000000..426d75bb9e3
--- /dev/null
+++ b/.shellcheckrc
@@ -0,0 +1,6 @@
+# allow unsafe `cd `
+disable=SC2164
+# allow unused variable (pkgname,pkgver etc.)
+disable=SC2034
+# allow uninitialized variable (srcdir,pkgdir)
+disable=SC2154
diff --git a/PKGBUILD b/PKGBUILD
index 06aebc314ec..66e9c34b174 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,7 +35,7 @@ pkgver() {
}
prepare() {
- git -C "${srcdir}/${pkgname}" apply -v ${srcdir}/{boost_107400,cmake.extra.install.dirs.remove,osl_1.11.8}.patch
+ git -C "${srcdir}/${pkgname}" apply -v "${srcdir}"/{boost_107400,cmake.extra.install.dirs.remove,osl_1.11.8}.patch
sed '/python37/s/37/39/' -i "${srcdir}/${pkgname}"/src/appleseed.python/CMakeLists.txt
}