#Packager: George Vlahavas pkgname=pluma pkgver=1.16.0 _majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"` pkgrel=4slint source=("http://pub.mate-desktop.org/releases/1.16/pluma-1.16.0.tar.xz") 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." ) # the patch settings.for.slint.diff makes the 'cobalt' style the default # as I prefer it for Slint. Also set the default editor font as # 'DejaVu Sans Mono 12' - Didier Spaier build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/settings.for.slint.diff ./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 cp $startdir/*xml $startdir/pkg/usr/share/glib-2.0/schemas chmod 644 $startdir/pkg/usr/share/glib-2.0/schemas/* }