#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=engrampa pkgver=1.14.1 _majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"` pkgrel=2dj source=("http://pub.mate-desktop.org/releases/${_majorver}/engrampa-${pkgver}.tar.xz" "engrampa.tap" "help.patch" "p7zip.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") options=('noautodotnew') doinst() { # compile schemas if [ -x usr/bin/glib-compile-schemas ]; then usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "engrampa (an archive manager for MATE)" "MATE File Archiver (Engrampa) is an archive manager for the MATE" "desktop envirnment." "With Engrampa 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/engrampa-$pkgver patch -p1 < $startdir/src/help.patch || exit 1 patch -p1 < $startdir/src/p7zip.patch || exit 1 ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --with-gtk=2.0 \ --disable-packagekit \ --disable-static \ --build=$arch-slackware-linux make || return 1 make install DESTDIR=$startdir/pkg # thunar plugin mkdir -p $startdir/pkg/usr/libexec/thunar-archive-plugin cp $startdir/src/engrampa.tap $startdir/pkg/usr/libexec/thunar-archive-plugin/ chmod 755 $startdir/pkg/usr/libexec/thunar-archive-plugin/engrampa.tap # remove unnecessary help files rm -rf $startdir/pkg/usr/share/help }