summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-12-03 12:08:23 +0800
committermaz-12015-12-03 12:08:23 +0800
commit3d939d120f6f1f8b77950fe01bd19bc24533b2cf (patch)
tree49b870c5ec226884eaef5c503a5bf1717bd211df
parent76a20cee66fdea395be0055744608986dc9a4abe (diff)
downloadaur-3d939d120f6f1f8b77950fe01bd19bc24533b2cf.tar.gz
fix
-rw-r--r--PKGBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a1afe50cc6bc..4f6f6ee9ffa3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,6 +29,7 @@ prepare() {
cd kcm-grub2-$pkgver
patch -p1 -i "$srcdir/port_to_kf5.patch"
patch -p1 -i "$srcdir/l10n_zh-cn.patch"
+ sed -i 's:^Exec=.*$:Exec=pkexec env DISPLAY=\$DISPLAY XAUTHORITY=\$XAUTHORITY kcmshell5 kcm_grub2:g' other/kcm_grub2.desktop
}
build() {
@@ -47,9 +48,5 @@ package() {
cd build
make DESTDIR="$pkgdir" install
install -dm755 "$pkgdir/usr/bin/"
- #echo "#!/bin/sh" > "$pkgdir/usr/bin/grub2-editor"
- #echo "exec kcmshell5 kcm_grub2" >> "$pkgdir/usr/bin/grub2-editor"
- #chmod +x "$pkgdir/usr/bin/grub2-editor"
- install -Dm755 "$srcdir/grub2-editor.desktop" "$pkgdir/usr/share/applications/grub2-editor.desktop"
- #install -Dm755 "${srcdir}/grub2-editor.gui.policy" "$pkgdir/usr/share/polkit-1/actions/grub2-editor.gui.policy"
+ #install -Dm755 "$srcdir/grub2-editor.desktop" "$pkgdir/usr/share/applications/grub2-editor.desktop"
}