summaryrefslogtreecommitdiff
path: root/extra/gparted/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-20 00:57:43 -0700
committerroot <root@rshg054.dnsready.net>2013-05-20 00:57:43 -0700
commit383955a81810f344e11b1472bd4c5069fa77020c (patch)
tree6017ed943ee9ae2ca0da830ede5f00f6d7817cf7 /extra/gparted/PKGBUILD
parent9a30c3d0083b8330b1aa6c0f89245e68ae762ee5 (diff)
Mon May 20 00:57:42 PDT 2013
Diffstat (limited to 'extra/gparted/PKGBUILD')
-rw-r--r--extra/gparted/PKGBUILD26
1 files changed, 16 insertions, 10 deletions
diff --git a/extra/gparted/PKGBUILD b/extra/gparted/PKGBUILD
index 326342c20..eaf8f656a 100644
--- a/extra/gparted/PKGBUILD
+++ b/extra/gparted/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 184007 2013-04-30 18:49:43Z giovanni $
+# $Id: PKGBUILD 185866 2013-05-19 16:28:55Z 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.16.1
-pkgrel=1
+pkgrel=3
pkgdesc="A Partition Magic clone, frontend to GNU Parted"
arch=('i686' 'x86_64')
url="http://gparted.sourceforge.net"
@@ -14,6 +14,9 @@ depends=('parted' 'gtkmm' 'hicolor-icon-theme')
makedepends=('intltool' 'pkg-config' 'gnome-doc-utils')
optdepends=('dosfstools: for FAT16 and FAT32 partitions'
'jfsutils: for jfs partitions'
+ 'f2fs-tools: for Flash-Friendly File System'
+ 'btrfs-progs: for btrfs partitions'
+ 'exfat-utils: for exFAT partitions'
'ntfs-3g: for ntfs partitions'
'reiserfsprogs: for reiser partitions'
'xfsprogs: for xfs partitions'
@@ -25,12 +28,14 @@ install=gparted.install
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2"
'org.archlinux.pkexec.gparted.policy')
md5sums=('3f399bff031b5ce14d11a8c346f4b89c'
- 'c031d7d2b845ccb025b9f83e0ddd5653')
+ '122ed3120c846376bead22b25f6a3b19')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr
+ sed -i "s:@gksuprog@ @installdir@/gparted %f:@installdir@/gparted_polkit %f:g" gparted.desktop.in.in
+ ./configure --prefix=/usr \
+ --sbindir=/usr/bin
make
}
@@ -42,11 +47,12 @@ package() {
# Install policy file
install -Dm644 "${srcdir}/org.archlinux.pkexec.gparted.policy" "${pkgdir}/usr/share/polkit-1/actions/org.archlinux.pkexec.gparted.policy"
- # We need rename the original script
- mv "${pkgdir}/usr/sbin/gparted" "${pkgdir}/usr/sbin/gparted.elf"
-
# Install launcher script
- echo '#!/bin/sh' > ${pkgdir}/usr/sbin/gparted
- echo 'pkexec --disable-internal-agent "/usr/sbin/gparted.elf" "$@"' >> ${pkgdir}/usr/sbin/gparted
- chmod 755 ${pkgdir}/usr/sbin/gparted
+ echo '#!/bin/sh' > ${pkgdir}/usr/bin/gparted_polkit
+ echo 'if [ $(which pkexec) ]; then' >> ${pkgdir}/usr/bin/gparted_polkit
+ echo ' pkexec --disable-internal-agent "/usr/bin/gparted" "$@"' >> ${pkgdir}/usr/bin/gparted_polkit
+ echo 'else' >> ${pkgdir}/usr/bin/gparted_polkit
+ echo ' /usr/bin/gparted "$@"' >> ${pkgdir}/usr/bin/gparted_polkit
+ echo 'fi' >> ${pkgdir}/usr/bin/gparted_polkit
+ chmod 755 ${pkgdir}/usr/bin/gparted_polkit
}