#Packager: George Vlahavas pkgname=pluma pkgver=1.16.0 _majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"` pkgrel=2gv source=( "http://pub.mate-desktop.org/releases/${_majorver}/pluma-$pkgver.tar.xz" "org.mate.lockdown.gschema.xml" "org.mate.interface.gschema.xml" "org.mate.applications-terminal.gschema.xml" ) docs=("readme" "install" "copying" "changelog" "authors" "news*" "todo" "hacking") 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------------------------------------------------------| "pluma (A powerful text editor for MATE)" "pluma is a small and lightweight UTF-8 text editor for the MATE" "desktop." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --enable-python \ --disable-gtk-doc \ --disable-gtk-doc-pdf \ --disable-gtk-doc-html \ --disable-schemas-compile \ --with-gtk=2.0 \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg # we'll borrow this from the mate-desktop package. It sucks that we # have to do this or pluma will not work if mate-desktop is not # installed. cp $startdir/src/org.*.xml $startdir/pkg/usr/share/glib-2.0/schemas/ }