wok annotate wormux/receipt @ rev 1103

Add Wormux game
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jul 18 21:58:03 2008 +0200 (2008-07-18)
parents
children c829999c2bc7
rev   line source
pankso@1103 1 # SliTaz package receipt.
pankso@1103 2
pankso@1103 3 PACKAGE="wormux"
pankso@1103 4 VERSION="0.8"
pankso@1103 5 CATEGORY="games"
pankso@1103 6 SHORT_DESC="Wormux game."
pankso@1103 7 DEPENDS="xorg libSDL SDL_gfx SDL_image SDL_mixer SDL_net SDL_ttf curl"
pankso@1103 8 BUILD_DEPENDS="xorg-dev libSDL-dev SDL_gfx-dev SDL_image-dev
pankso@1103 9 SDL_mixer-dev SDL_net-dev SDL_ttf-dev curl-dev"
pankso@1103 10 MAINTAINER="pankso@slitaz.org"
pankso@1103 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@1103 12 WEB_SITE="http://www.wormux.org/"
pankso@1103 13 WGET_URL="http://download.gna.org/wormux/$TARBALL"
pankso@1103 14
pankso@1103 15 # Rules to configure and make the package.
pankso@1103 16 compile_rules()
pankso@1103 17 {
pankso@1103 18 cd $src
pankso@1103 19 sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
pankso@1103 20 Makefile
pankso@1103 21 ./configure \
pankso@1103 22 --prefix=/usr \
pankso@1103 23 --bindir=/usr/games \
pankso@1103 24 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
pankso@1103 25 $CONFIGURE_ARGS
pankso@1103 26 make
pankso@1103 27 make DESTDIR=$PWD/_pkg install
pankso@1103 28 }
pankso@1103 29
pankso@1103 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1103 31 genpkg_rules()
pankso@1103 32 {
pankso@1103 33 mkdir -p $fs/usr/share
pankso@1103 34 cp -a $_pkg/usr/games $fs/usr
pankso@1103 35 cp -a $_pkg/usr/share/wormux $fs/usr/share
pankso@1103 36 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
pankso@1103 37 # Remove unecessary files
pankso@1103 38 rm -rf $fs/usr/share/wormux/font
pankso@1103 39 }