#Maintainer: George Vlahavas pkgname=gnome-video-arcade pkgver=0.7.0 pkgrel=1gv source=("http://download.gnome.org/sources/gnome-video-arcade/0.7/gnome-video-arcade-0.7.0.tar.bz2" "gnome-video-arcade-48.png" "http://www.progettoemma.net/public/cat/catveren.zip" "http://www.arcade-history.com/dats/mamehistory134.zip") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "about-nls" "readhist.dat") url=http://mbarnes.github.com/gnome-video-arcade/ options=('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------------------------------------------------------| "gnome-video-arcade (Play classic arcade games on your desktop!)" "GNOME Video Arcade is a simple MAME frontend for the GNOME desktop." "It supports both the xmame and sdlmame ports of MAME for GNU/Linux and" "other UNIX-like operating systems, and can utilize third-party data" "files like arcade history and game categories." "" "Make sure you have setup sdlmame properly with an ~/.mame/mame.ini" "settings file or gnome-video-arcade will not find your roms!" ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static --disable-schemas-install --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-gtk-doc --disable-scrollkeeper --with-category-file=/usr/share/gnome-video-arcade/catver.ini --with-history-file=/usr/share/gnome-video-arcade/history.dat make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/src/gnome-video-arcade-48.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/gnome-video-arcade.png cp $startdir/src/catveren/Catver.ini $startdir/pkg/usr/share/gnome-video-arcade/catver.ini cp $startdir/src/history.dat $startdir/pkg/usr/share/gnome-video-arcade # 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 }