# $Id: PKGBUILD 124848 2011-05-24 19:25:12Z giovanni $ # Maintainer: Giovanni Scafora # Contributor: Andrew Simmons pkgname=gparted pkgver=0.8.1 pkgrel=1 pkgdesc="A Partition Magic clone, frontend to GNU Parted" arch=('i686' 'x86_64' 'mips64el') 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=('ba3a434a259ae2ddcfc7f7488ee648ef') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install sed -i -e "s:Exec= /usr/sbin:Exec=gksu /usr/sbin:g" ${pkgdir}/usr/share/applications/gparted.desktop }