summaryrefslogtreecommitdiff
path: root/extra/gparted
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-27 02:19:29 -0800
committerroot <root@rshg054.dnsready.net>2012-11-27 02:19:29 -0800
commitc008601effc878e60852f7928ddadcf5a16eb851 (patch)
tree50f2e1a3e779a9a93deadc396c29f80c6f24de0e /extra/gparted
parentd41782ebd2416faf39268ec9a2c3242430390308 (diff)
Tue Nov 27 02:14:24 PST 2012
Diffstat (limited to 'extra/gparted')
-rw-r--r--extra/gparted/PKGBUILD25
1 files changed, 20 insertions, 5 deletions
diff --git a/extra/gparted/PKGBUILD b/extra/gparted/PKGBUILD
index 9515cdd67..97a596b82 100644
--- a/extra/gparted/PKGBUILD
+++ b/extra/gparted/PKGBUILD
@@ -1,16 +1,16 @@
-# $Id: PKGBUILD 171955 2012-11-25 09:02:02Z giovanni $
+# $Id: PKGBUILD 172015 2012-11-26 14:36:27Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
# Contributor: György Balló <ballogy@freestart.hu>
pkgname=gparted
pkgver=0.14.0
-pkgrel=2
+pkgrel=3
pkgdesc="A Partition Magic clone, frontend to GNU Parted"
arch=('i686' 'x86_64')
url="http://gparted.sourceforge.net"
license=('GPL')
-depends=('parted' 'gtkmm' 'hicolor-icon-theme' 'gksu')
+depends=('parted' 'gtkmm' 'hicolor-icon-theme')
makedepends=('intltool' 'pkg-config' 'gnome-doc-utils')
optdepends=('dosfstools: for FAT16 and FAT32 partitions'
'jfsutils: for jfs partitions'
@@ -18,11 +18,14 @@ optdepends=('dosfstools: for FAT16 and FAT32 partitions'
'reiserfsprogs: for reiser partitions'
'xfsprogs: for xfs partitions'
'nilfs-utils: for nilfs2 support'
+ 'polkit-gnome: to run gparted directly from menu'
'gpart: for recovering corrupt partition tables'
'mtools')
install=gparted.install
-source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('fc3507479e930967a2049c533907384d')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+ 'org.archlinux.pkexec.gparted.policy')
+md5sums=('fc3507479e930967a2049c533907384d'
+ '27c264cfad8fa413d75954dda7a2dd50')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -35,4 +38,16 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
+
+ # Install policy file
+ install -Dm644 "${srcdir}/org.archlinux.pkexec.gparted.policy" "${pkgdir}/usr/share/polkit-1/actions/org.archlinux.pkexec.gparted.policy"
+
+ # Install launcher script
+ mkdir -p ${pkgdir}/usr/bin
+ echo '#!/bin/sh' > ${pkgdir}/usr/bin/gparted-pkexec
+ echo 'pkexec "/usr/sbin/gparted" "$@"' >> ${pkgdir}/usr/bin/gparted-pkexec
+ chmod 755 ${pkgdir}/usr/bin/gparted-pkexec
+
+ # Modify desktop file
+ sed -i -e "s/Exec=.*/Exec=gparted-pkexec/" ${pkgdir}/usr/share/applications/gparted.desktop
}