summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lass2018-04-13 21:21:24 +0200
committerMichael Lass2018-04-13 21:21:24 +0200
commitd33b7ad56e5f89d96bb3ccde2cf07844ff8ec92b (patch)
treefc9eeca9b57f9f9a81bdc3b75d2675f4fb1bfd84
parent9ecb1852af97d7f14913078bfead38d27b98bbda (diff)
downloadaur-d33b7ad56e5f89d96bb3ccde2cf07844ff8ec92b.tar.gz
Handle pkgdir or srcdir with spaces
-rw-r--r--PKGBUILD20
1 files changed, 10 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 964007b41c7..7b490ec901d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,14 +25,14 @@ _extramodules=$(ls -dt /usr/lib/modules/extramodules-* | head -n1)
_kernelver=$(cat ${_extramodules}/version)
prepare() {
- cd ${srcdir}/${_srcname}-${pkgver}
+ cd "${srcdir}/${_srcname}-${pkgver}"
# Only needed when changes to configure were made
#./regen.sh -q
}
build() {
- cd ${srcdir}/${_srcname}-${pkgver}
+ cd "${srcdir}/${_srcname}-${pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
@@ -48,21 +48,21 @@ build() {
package() {
- cd ${srcdir}/${_srcname}-${pkgver}
+ cd "${srcdir}/${_srcname}-${pkgver}"
- make DESTDIR=${pkgdir} install_only_libafs
+ make DESTDIR="${pkgdir}" install_only_libafs
# install kernel module
- install -dm755 ${pkgdir}${_extramodules}
- mv ${pkgdir}/lib/modules/${_kernelver}/extra/openafs/openafs.ko ${pkgdir}${_extramodules}/openafs.ko
- gzip -9 ${pkgdir}${_extramodules}/openafs.ko
+ install -dm755 "${pkgdir}${_extramodules}"
+ mv "${pkgdir}/lib/modules/${_kernelver}/extra/openafs/openafs.ko" "${pkgdir}${_extramodules}/openafs.ko"
+ gzip -9 "${pkgdir}${_extramodules}/openafs.ko"
# install license
- install -Dm644 ${srcdir}/${_srcname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ install -Dm644 "${srcdir}/${_srcname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# remove files already included in openafs package
- find ${pkgdir}/usr -maxdepth 3 -type f -delete
- find ${pkgdir}/usr -maxdepth 3 -type l -delete
+ find "${pkgdir}/usr" -maxdepth 3 -type f -delete
+ find "${pkgdir}/usr" -maxdepth 3 -type l -delete
# update major kernel version in install file
sed -i "s/depmod .*/depmod ${_kernelver}/g" "${startdir}/openafs-modules.install"