[arch-commits] Commit in gsmartcontrol/trunk (PKGBUILD)
Frederik Schwan
freswa at archlinux.org
Fri Aug 28 12:27:04 UTC 2020
Date: Friday, August 28, 2020 @ 12:27:04
Author: freswa
Revision: 690712
fix unquoted variables
Modified:
gsmartcontrol/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-28 12:26:56 UTC (rev 690711)
+++ PKGBUILD 2020-08-28 12:27:04 UTC (rev 690712)
@@ -18,7 +18,7 @@
'33bdda04d8db1525f2507485f3f2a663')
prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
# Modify desktop file
sed -i "s|^Exec=.*|Exec="@prefix@/bin/gsmartcontrol_polkit"|" \
@@ -26,26 +26,26 @@
}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
CXXFLAGS+=' -std=c++11' ./configure --prefix=/usr --sbindir=/usr/bin/
make
}
check() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
make check
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
+ make DESTDIR="${pkgdir}" install
# Install launcher script
- install -m755 ${srcdir}/gsmartcontrol_polkit \
+ install -m755 "${srcdir}"/gsmartcontrol_polkit \
"${pkgdir}/usr/bin/gsmartcontrol_polkit"
# Install policy file
- install -Dm644 ${srcdir}/org.archlinux.pkexec.gsmartcontrol.policy \
+ install -Dm644 "${srcdir}"/org.archlinux.pkexec.gsmartcontrol.policy \
"${pkgdir}/usr/share/polkit-1/actions/org.archlinux.pkexec.gsmartcontrol.policy"
}
More information about the arch-commits
mailing list