# Description: Gparted is the Gnome Partition Editor, a Gtk 2 GUI that can create, reorganise or delete disk partitions.
# URL: http://gparted.sourceforge.net/
# Packager: pierre at nutyx dot org
# Depends on: ssh-askpass gnome-doc-utils, gtk2,parted,gtkmm,libsigc++,ntfs-3g,lvm2,docbook-xsl

description="Partition Editor, a Gtk 2 GUI that can create, reorganise or delete disk partitions."
name=gparted
version=0.25.0
release=2

run=(ssh-askpass)

source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz)

build() {
cd $name-$version
./configure --prefix=/usr    \
            --disable-static
make
make DESTDIR=$PKG install
sed -i 's/Exec=/Exec=sudo -A /' \
$PKG/usr/share/applications/gparted.desktop
}
doc() {
cd $PKG
bsdtar -cf \
$PKGMK_PACKAGE_DIR/${name}.doc${PKGMK_BUILDVER}any.cards.tar \
usr/share/gnome

rm -r usr/share/gnome
}
