summaryrefslogtreecommitdiff
path: root/community/gsmartcontrol/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gsmartcontrol/PKGBUILD')
-rw-r--r--community/gsmartcontrol/PKGBUILD22
1 files changed, 15 insertions, 7 deletions
diff --git a/community/gsmartcontrol/PKGBUILD b/community/gsmartcontrol/PKGBUILD
index 5d772fd4a..5ed813a1d 100644
--- a/community/gsmartcontrol/PKGBUILD
+++ b/community/gsmartcontrol/PKGBUILD
@@ -2,18 +2,18 @@
pkgname=gsmartcontrol
pkgver=0.8.7
-pkgrel=1
+pkgrel=2
pkgdesc="A graphical user interface for the smartctl hard disk drive health inspection tool."
arch=('i686' 'x86_64')
url="http://gsmartcontrol.berlios.de/home/index.php/en/Home"
license=('GPL3')
depends=('smartmontools' 'pcre' 'gtkmm' 'libglademm' 'glib2' 'xorg-xmessage')
-optdepends=('gnomesu: for gsmartcontrol-root'
- 'gksu: for gsmartcontrol-root')
+optdepends=('polkit: to run gparted directly from menu')
install=${pkgname}.install
-source=(http://download.berlios.de/gsmartcontrol/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('6d104c2ffc1e693cd1a8052a6d7e3b30')
-
+source=(http://download.berlios.de/gsmartcontrol/${pkgname}-${pkgver}.tar.bz2 org.archlinux.pkexec.gsmartcontrol.policy gsmartcontrol.desktop)
+md5sums=('6d104c2ffc1e693cd1a8052a6d7e3b30'
+ 'e7b9380849cdcaa4356a42559ea7954f'
+ '19b20293a639e51fa2abb929a3faae01')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -30,4 +30,12 @@ package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
-}
+
+ # Install pexec fixed desktop file
+ install -Dm755 $srcdir/gsmartcontrol.desktop $pkgdir/usr/share/applications/gsmartcontrol.desktop
+
+ # Install pexec file
+ install -Dm766 $srcdir/org.archlinux.pkexec.gsmartcontrol.policy \
+ $pkgdir/usr/share/polkit-1/actions/org.archlinux.pkexec.gsmartcontrol.policy
+
+ }