wok annotate warzone2100/receipt @ rev 8695

improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Feb 17 23:04:20 2011 +0100 (2011-02-17)
parents 55fee7e071f6
children 0547a154c252
rev   line source
slaxemulator@6551 1 # SliTaz package receipt.
slaxemulator@6551 2
slaxemulator@6551 3 PACKAGE="warzone2100"
slaxemulator@8300 4 VERSION="2.3.7"
slaxemulator@6551 5 CATEGORY="games"
slaxemulator@6551 6 SHORT_DESC="3D realtime strategy game on a future Earth"
slaxemulator@6551 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@6551 8 DEPENDS="libsdl-net mesa openal jpeg libpng libvorbis libtheora libmad physfs quesoglc popt ttf-dejavu ttf-dejavu-extra"
slaxemulator@6551 9 BUILD_DEPENDS="libsdl-dev libsdl-net-dev mesa-dev openal openal-dev jpeg-dev libpng-dev libogg-dev libvorbis-dev libtheora-dev libmad-dev physfs-dev quesoglc-dev popt-dev gawk bison flex zip unzip pkg-config zlib-dev"
slaxemulator@6551 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@6551 11 WEB_SITE="http://wz2100.net/"
slaxemulator@6551 12 WGET_URL="$SF_MIRROR/warzone2100/releases/$VERSION/$TARBALL"
slaxemulator@6551 13
slaxemulator@6551 14 # Rules to configure and make the package.
slaxemulator@6551 15 compile_rules()
slaxemulator@6551 16 {
slaxemulator@6551 17 cd $src
slaxemulator@6551 18 ./configure \
slaxemulator@6551 19 --prefix=/usr \
slaxemulator@6551 20 --infodir=/usr/share/info \
slaxemulator@6551 21 --mandir=/usr/share/man \
slaxemulator@7490 22 --disable-motif \
slaxemulator@6551 23 $CONFIGURE_ARGS &&
slaxemulator@6551 24 make && make DESTDIR=$PWD/_pkg install
slaxemulator@6551 25 }
slaxemulator@6551 26
slaxemulator@6551 27 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6551 28 genpkg_rules()
slaxemulator@6551 29 {
slaxemulator@6551 30 mkdir -p $fs/usr/share/pixmaps
slaxemulator@6551 31 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@6551 32 cp -a $_pkg/usr/share/applications $fs/usr/share
slaxemulator@6551 33 cp -a $_pkg/usr/share/icons/warzone2100.png $fs/usr/share/pixmaps
slaxemulator@6551 34 cp -a $_pkg/usr/share/warzone2100 $fs/usr/share
slaxemulator@6551 35 }
slaxemulator@6551 36