#Maintainer: George Vlahavas pkgname=monkey-bubble pkgver=0.4.0 pkgrel=1gv arch=x86_64 source=("http://home.gna.org/monkeybubble/downloads/monkey-bubble-0.4.0.tar.gz" "monkey-bubble-0.4.0-nohelp.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://home.gna.org/monkeybubble/ 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------------------------------------------------------| "monkey-bubble - Puzzle Bobble clone for Gnome and much more" "Monkey Bubble is a game in which you must explode all bubbles in" "the game area. You explode bubbles by putting at least 3 of the same" "colour in contact. Any bubble that is connected to the top or the" "sides of the game area by bubbles you just exploded falls too. When" "playing 2 players game, the goal of the game is to make your opponent" "be over-crowded by his own bubbles. When the bubbles reach the lower" "line at the bottom of the launching snake, you lose. When you explode" "more than 3 bubbles, they are injected into the opponent's area making" "it harder for him to play..." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/monkey-bubble-0.4.0-nohelp.patch ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-scrollkeeper --disable-schemas-install --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" make;make # it breaks during compiling help the first couple of times but we don't really care make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/icons/hicolor/32x32/apps ( cd $startdir/pkg/usr/share/icons/hicolor/32x32/apps; ln -s ../../../../pixmaps/monkey-bubble-icon.png monkey-bubble-icon.png ) sed -i 's/.png//' $startdir/pkg/usr/share/applications/monkey-bubble.desktop # 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 rm -rf $startdir/pkg/usr/share/{gnome,omf} }