#Packager: George Vlahavas pkgname=rocksndiamonds pkgver=3.3.0.1 pkgrel=1gv source=("http://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-$pkgver.tar.gz" "icons.tar.gz" "rocksndiamonds.desktop" "rocksndiamonds") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "credits" "hardware" "$pkgname-$pkgver.lsm") url=http://www.artsoft.org/rocksndiamonds/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "rocksndiamonds (a game in the spirit of Boulder Dash)" "Rocks'n'Diamonds is an arcade style game in the tradition of" "'Boulder Dash' (C 64), 'Emerald Mine' (Amiga)," "'Supaplex' (Amiga/PC) and 'Sokoban' (PC)." ) build() { cd $startdir/src/$pkgname-$pkgver sed -i -e 's/-O3//' src/Makefile sed -i -e "s/-Wall/-Wall $CFLAGS/" src/Makefile make || return 1 mkdir -p $startdir/pkg/usr/share/rocksndiamonds cp -a rocksndiamonds docs graphics levels music scores sounds $startdir/pkg/usr/share/rocksndiamonds/ mkdir -p $startdir/pkg/usr/man/man1 cp rocksndiamonds.1 $startdir/pkg/usr/man/man1/ mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/rocksndiamonds.desktop $startdir/pkg/usr/share/applications/ mkdir -p $startdir/pkg/usr/bin install -m 755 $startdir/src/rocksndiamonds $startdir/pkg/usr/bin/ # Copy icons to the right place ICONSIZES="64 48 32 24 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; cp $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; chown -R root:root $startdir/pkg }