summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof (3ED) AS2015-08-19 16:12:58 +0200
committerKrzysztof (3ED) AS2015-08-19 16:12:58 +0200
commite5f59efaef533c30a926b15f913af6902c4fb361 (patch)
tree0206f0a45208c8c1767bc73205b2d5da8de7a6d8
parentc4f12bb9aebb09070b89b29a9a3a9a9932978678 (diff)
downloadaur-e5f59efaef533c30a926b15f913af6902c4fb361.tar.gz
fix adding pkexec to gddcontrol desktop file
-rw-r--r--PKGBUILD8
1 files changed, 3 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d26270fbc4e..d5e1308b02a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,11 +18,6 @@ options=('!libtool')
sha256sums=('986f3b4b27ec04e1da493de3aaab01cd5ea9566d7572c1a40b8d43cd7a491e84'
'811bf1ecc85045e80757ea553591c00e32bb93d529a761b18bb501d0f2bf82c5')
-prepare() {
- sed -e 's/Exec=gddccontrol/Exec=pkexec gddccontrol/' \
- -i "${srcdir}/${pkgbase}-${pkgver}/src/gddccontrol/gddccontrol.desktop"
-}
-
build() {
cd "${srcdir}"/${pkgbase}-${pkgver}
./configure \
@@ -49,7 +44,10 @@ package_gddccontrol() {
cd "${srcdir}"/${pkgbase}-${pkgver}
make DESTDIR="${pkgdir}" install -C src/gddccontrol
+ # policykit
install -Dm644 \
"$srcdir/org.ddccontrol.pkexec.gddccontrol.policy" \
"${pkgdir}/usr/share/polkit-1/actions/org.ddccontrol.pkexec.gddccontrol.policy"
+ sed -e 's/Exec=gddccontrol/Exec=pkexec gddccontrol/' \
+ -i "${pkgdir}/usr/share/applications/gddccontrol/gddccontrol.desktop"
}