#Maintainer: George Vlahavas (vlahavas~at~gmail.com, gapan@zenwalk forums) pkgname=ifm pkgver=5.2 zenver=54 pkgrel=1 arch=i486 source=("http://mirror.ifarchive.org/if-archive/mapping-tools/ifm-5.2.tar.gz" "http://pnboy.pinguix.com/gapan/games/$pkgname/ifm.desktop" "http://pnboy.pinguix.com/gapan/games/$pkgname/ifm.vim" "http://pnboy.pinguix.com/gapan/games/$pkgname/icons.tar.gz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://www.sentex.net/~dchapes/ifm/ sourcetemplate=http://pnboy.pinguix.com/gapan/games/$pkgname options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "ifm - Interactive Fiction Mapper" "IFM is a language and a program for keeping track of your progress" "through an Interactive Fiction game. You can record each room you" "visit and its relation to other rooms, the initial locations of useful" "items you find, and the tasks you need to perform in order to solve" "the game. IFM can write hardcopy maps directly to PostScript, suitable" "for printing or viewing. It can also write maps in Fig format, which" "can be viewed and edited using Xfig, or converted into many other" "formats." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc make || return 1 make install DESTDIR=$startdir/pkg mkdir $startdir/pkg/usr/doc/$pkgname-$pkgver mv $startdir/pkg/usr/doc/ifm/* $startdir/pkg/usr/doc/$pkgname-$pkgver rmdir $startdir/pkg/usr/doc/ifm # Install syntax highlight for vim mkdir -p $startdir/pkg/usr/share/vim/vim72/syntax/ cp $startdir/src/ifm.vim $startdir/pkg/usr/share/vim/vim72/syntax/ # 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; mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps mv $startdir/src/$pkgname.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps/ }