#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums) pkgname=file-roller pkgver=2.26.1 zenver=62 pkgrel=2 arch=i686 source=("http://ftp.gnome.org/pub/GNOME/sources/file-roller/2.26/file-roller-2.26.1.tar.bz2" "http://pnboy.pinguix.com/gapan/gnome/$pkgname/file-roller-2.26.0-nohelp.patch" " "http://pnboy.pinguix.com/gapan/gnome/$pkgname/file-roller-2.26.1-xz.patch"") sourcetemplate=http://pnboy.pinguix.com/gapan/gnome/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://fileroller.sourceforge.net/ options=('norequiredbuilder' 'keepdepfile' '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.26.0-nohelp.patch || exit 1 patch -p1 < $startdir/src/file-roller-2.26.1-xz.patch || exit 1 ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-scrollkeeper --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-static make || return 1 make install DESTDIR=$startdir/pkg sed -i "s/^MimeType=\(.*\)/MimeType=application/x-lzma;application/x-lzma-compressed-tar;\1/" $startdir/pkg/usr/share/applications/file-roller.desktop # 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 }