#Packager: George Vlahavas pkgname=xrick pkgver=021212 pkgrel=1gv arch=x86_64 source=("http://www.bigorno.net/xrick/xrick-$pkgver.tgz" "xrick.desktop" "xrick.png") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.bigorno.net/xrick/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "xrick (a clone of the platform game Rick Dangerous)" "Way before Lara Croft, back in the 1980's and early 1990's, Rick" "Dangerous was the Indiana Jones of computer games, running away from" "rolling rocks, avoiding traps, from South America to a futuristic" "missile base via Egypt and the Schwarzendumpf castle." ) build() { cd $startdir/src/$pkgname-$pkgver # As it is the binary expects the data.zip file to be in the same # directory, so we're changing the source code to specify where we want # the data.zip file to be (/usr/share/xrick) sed -i -e 's,data.zip,/usr/share/xrick/data.zip,' src/xrick.c sed -i "s/-O2/$CFLAGS/" Makefile make || return 1 mkdir -p $startdir/pkg/usr/bin mkdir -p $startdir/pkg/usr/man/man6 mkdir -p $startdir/pkg/usr/share/xrick cp xrick $startdir/pkg/usr/bin/ cp xrick.6.gz $startdir/pkg/usr/man/man6/ cp data.zip $startdir/pkg/usr/share/xrick/ mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ cp $startdir/src/xrick.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/xrick.desktop $startdir/pkg/usr/share/applications/ }