#Maintainer: Shador #Former Maintainer: Stephen Nabholz pkgname=hedgewars pkgver=0.9.10 pkgrel=1 zenver=62 arch=i686 source=("http://hedgewars.org/download/hedgewars-src-0.9.10.tar.bz2" "hedgewars.desktop" "hedgewars.png") docs=("install" "copying" "changelog.txt" "fonts_license.txt") url='http://www.hedgewars.org' sourcetemplate="http://gaia.homelinux.org/packages/$pkgname/$pkgver-$zenver.$pkgrel" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - Free Worms-like turn based strategy game" "Hedgewars, it's a Blast! This is the funniest and most addictive game" "you'll ever play - hilarious fun that you can enjoy anywhere, anytime." "Hedgewars is a turn based strategy game but the real buzz is from" "watching the devastation caused by those pesky hedgehogs with those" "fantastic weapons - sneaky little blighters with a bad attitude!" ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi PATH=$PATH:/usr/lib/qt-4.4.3/bin/ cd $startdir/src/$pkgname-src-$pkgver cmake -DCMAKE_CXX_FLAGS="-O2 -march=i486 -mtune=i686" -DCMAKE_INSTALL_PREFIX="/usr" make -j $threadcount || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/man/man6 mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp -v man/hedgewars.6 $startdir/pkg/usr/man/man6 cp -v ../hedgewars.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps }