summaryrefslogtreecommitdiff
path: root/extra/gparted
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gparted')
-rw-r--r--extra/gparted/PKGBUILD38
-rw-r--r--extra/gparted/gparted.install11
2 files changed, 49 insertions, 0 deletions
diff --git a/extra/gparted/PKGBUILD b/extra/gparted/PKGBUILD
new file mode 100644
index 000000000..f9921fc8b
--- /dev/null
+++ b/extra/gparted/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 112741 2011-03-06 12:56:57Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
+
+pkgname=gparted
+pkgver=0.8.0
+pkgrel=2
+pkgdesc="A Partition Magic clone, frontend to GNU Parted"
+arch=('i686' 'x86_64')
+url="http://gparted.sourceforge.net"
+license=('GPL')
+depends=('parted' 'gtkmm' 'libsigc++')
+makedepends=('intltool' 'pkgconfig' 'gnome-doc-utils')
+optdepends=('e2fsprogs: for ext2/ext3 partitions'
+ 'dosfstools: for fat16/32 partitions'
+ 'jfsutils: for jfs partitions'
+ 'ntfsprogs: for ntfs partitions'
+ 'reiserfsprogs: for reiser partitions'
+ 'xfsprogs: for xfs partitions'
+ 'gksu: to run gparted directly from menu'
+ 'gpart: for recovering corrupt partition tables')
+install=gparted.install
+source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('29adfe33df34c03b7f800ce5374e957a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install || return 1
+ sed -i -e "s:Exec= /usr/sbin:Exec=gksu /usr/sbin:g" ${pkgdir}/usr/share/applications/gparted.desktop || return 1
+}
diff --git a/extra/gparted/gparted.install b/extra/gparted/gparted.install
new file mode 100644
index 000000000..21b79d2d4
--- /dev/null
+++ b/extra/gparted/gparted.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}