#Maintainer: George Vlahavas (vlahavas~at~gmail.com, gapan@zenwalk forums) pkgname=level9 pkgver=4.1 zenver=54 pkgrel=1 arch=i486 source=("http://pnboy.pinguix.com/gapan/games/$pkgname/Level9_4.1_Source.zip" "http://pnboy.pinguix.com/gapan/games/$pkgname/level9" "http://pnboy.pinguix.com/gapan/games/$pkgname/icons.tar.gz" "http://pnboy.pinguix.com/gapan/games/$pkgname/level9.desktop") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers" "bugs" "porting.txt" "level9.txt") url=http://www.ifarchive.org/indexes/if-archiveXlevel9XinterpretersXlevel9.html sourcetemplate=http://pnboy.pinguix.com/gapan/games/$pkgname options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "level9 - an interpreter for Level 9 adventures." "Level 9 was a British computer adventure game company which produced" "some of the most advanced games of the 1980s. Founded in 1981 by" "Michael, Nicholas and Pete Austin, the company produced about 20 games" "for a wide range of home computers of that era. To play any of those" "games you will need their original data files." ) build() { rm -rf $startdir/src/win cd $startdir/src/Gtk sed -i -e "s/-O2/-O2 -march=i486 -mtune=i686/" Makefile make || return 1 mkdir -p $startdir/pkg/usr/bin cp -a gtklevel9 $startdir/pkg/usr/bin chmod 755 $startdir/pkg/usr/bin/gtklevel9 cp -a $startdir/src/level9 $startdir/pkg/usr/bin chown -R root:root $startdir/pkg/usr/bin chmod 755 $startdir/pkg/usr/bin/level9 # Copy icons to the right place ICONSIZES="48 32 24 22 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; }