#Packager: George Vlahavas pkgname=gparted pkgver=0.5.2 pkgrel=1gv arch=x86_64 source=("http://downloads.sourceforge.net/project/gparted/gparted/gparted-$pkgver/gparted-$pkgver.tar.bz2" "gparted-0.4.8-nohelp.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://gparted.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gparted (Parted GTK2 Frontend)" "GParted is the Gnome Partition Editor application. GParted uses GNU" "libparted to detect and manipulate devices and partition tables." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/gparted-0.4.8-nohelp.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux --disable-static make || return 1 make install DESTDIR=$startdir/pkg # Create two .desktop files, one for KDE, one for the rest cp $startdir/pkg/usr/share/applications/gparted.desktop $startdir/pkg/usr/share/applications/gparted-kde.desktop echo "NotShowIn=KDE" >> $startdir/pkg/usr/share/applications/gparted.desktop sed -i "s/gksu/kdesu/" $startdir/pkg/usr/share/applications/gparted-kde.desktop echo "OnlyShowIn=KDE" >> $startdir/pkg/usr/share/applications/gparted-kde.desktop # These are no longer needed, as help has been removed anyway rm -rf $startdir/pkg/usr/share/{gnome,omf} }