#Packager: George Vlahavas pkgname=aisleriot pkgver=3.12.1 pkgrel=1gv source=("ftp://ftp.gnome.org/pub/gnome/sources/aisleriot/3.12/aisleriot-3.12.1.tar.xz") docs=("readme" "install" "copying*" "changelog" "authors" "news" "todo") 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------------------------------------------------------| "aisleriot (solitaire card game collection)" "Aisleriot is a collection of over eighty different solitaire card" "games, including popular variants such as spider, freecell, klondike," "thirteen (pyramid), yukon, canfield and many more." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --with-card-theme-formats=svg \ --with-help-method=ghelp \ --with-platform=gtk-only \ --disable-schemas-compile \ --disable-schemas-install \ --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg # Install gconf schemas in the package 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 }