#Maintainer: George Vlahavas (vlahavas~at~gmail.com, gapan@zenwalk forums) #If anyone else wants to maintain this, feel free to do so #Former maintainer: Johannes Marbach (hennes) pkgname=PokerTH pkgver=0.6.4 pkgrel=1 zenver=62 arch=i686 source=("http://heanet.dl.sourceforge.net/sourceforge/pokerth/PokerTH-0.6.4-src.tar.bz2" "http://pnboy.pinguix.com/gapan/$pkgname/pokerth.png" "http://pnboy.pinguix.com/gapan/$pkgname/pokerth.desktop") sourcetemplate=http://pnboy.pinguix.com/gapan/games/$pkgname docs=("copying" "changelog" "install" "build_vc_windows.txt" "net_protocol.txt") url=http://www.pokerth.net/ options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "PokerTH (Texas Hold'em poker game)" "PokerTH is a poker game written in C++/QT4. You can play the popular" "Texas Hold'em poker variant against up to six computer-opponents or" "play network games with people all over the world." ) build() { cd $startdir/src/$pkgname-$pkgver-src /usr/lib/qt4/bin/qmake pokerth.pro # Patch for proper flags (It's dirty, i know.) /usr/lib/qt4/bin/qmake pokerth_lib.pro -unix -o Makefile.pokerth_lib sed -i 's|-O2|-O2 -march=i686 -mtune=i686|' ./Makefile.pokerth_lib sed -i 's|$(QMAKE) pokerth_lib.pro -unix -o $(MAKEFILE).pokerth_lib||' ./Makefile /usr/lib/qt4/bin/qmake pokerth_game.pro -unix -o Makefile.pokerth_game sed -i 's|-O2|-O2 -march=i686 -mtune=i686|' ./Makefile.pokerth_game sed -i 's|$(QMAKE) pokerth_game.pro -unix -o $(MAKEFILE).pokerth_game||' ./Makefile /usr/lib/qt4/bin/qmake pokerth_server.pro -unix -o Makefile.pokerth_server sed -i 's|-O2|-O2 -march=i686 -mtune=i686|' ./Makefile.pokerth_server sed -i 's|$(QMAKE) pokerth_server.pro -unix -o $(MAKEFILE).pokerth_server||' ./Makefile make || return 1 make install INSTALL_ROOT=$startdir/pkg # Copy binaries mkdir -p $startdir/pkg/usr/bin cp ./bin/pokerth_server $startdir/pkg/usr/bin cp ./pokerth $startdir/pkg/usr/bin # Icons mkdir -p $startdir/pkg/usr/share/icons/hicolor/{48x48,64x64}/apps cp pokerth.png $startdir/pkg/usr/share/icons/hicolor/64x64/apps cp $startdir/src/pokerth.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps # Manpage mkdir -p $startdir/pkg/usr/man/man1 cp docs/pokerth.1 $startdir/pkg/usr/man/man1 }