#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=file-roller pkgver=2.30.1 pkgrel=1gv source=("http://ftp.gnome.org/pub/GNOME/sources/file-roller/2.30/file-roller-2.30.1.tar.bz2" "file-roller-2.30.0-nohelp.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://fileroller.sourceforge.net/ options=('noautodotnew') doinst() { # Update the scrollkeeper database (Remove stale pieces) if [ -x usr/bin/scrollkeeper-update ]; then usr/bin/scrollkeeper-update > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "file-roller is an archive manager for the GNOME desktop environment" "With File Roller you can:" "" " * Create and modify archives." " * View the content of an archive." " * View a file contained in the archive." " * Extract files from the archive." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/file-roller-2.30.0-nohelp.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-scrollkeeper --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-static --build=$arch-slackware-linux make || return 1 make install DESTDIR=$startdir/pkg # gconf stuff export GCONF_CONFIG_SOURCE="xml::$startdir/pkg/etc/gconf/gconf.xml.defaults" if [ -d $startdir/pkg/etc/gconf/schemas ]; then install -v -d -m755 $startdir/pkg/etc/gconf/gconf.xml.defaults SCHEMAS=$startdir/pkg/etc/gconf/schemas for schema in $SCHEMAS/*.schemas; do gconftool-2 --makefile-install-rule $schema done # Reset / Verify correct permissions ( cd $startdir/pkg/etc/gconf ; find . -type d -exec chmod 755 {} \; ) ( cd $startdir/pkg/etc/gconf ; find . -type f -exec chmod 644 {} \; ) fi # we don't need help files rm -rf $startdir/pkg/usr/share/gnome rm -rf $startdir/pkg/usr/share/omf }