wok-next view btanks/receipt @ rev 13492

Add; mondo$
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Fri Oct 12 23:26:16 2012 +0200 (2012-10-12)
parents f09d07ae1550
children 6b09507225ec
line source
1 # SliTaz package receipt.
3 PACKAGE="btanks"
4 VERSION="0.9.8083"
5 CATEGORY="games"
6 SHORT_DESC="A fast 2d tank arcade game with multiplayer and split-screen modes."
7 MAINTAINER="slaxemulator@gmail.com"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://btanks.sourceforge.net"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="expat mesa libsigc++ libvorbis lua openal libsdl libsdl-image libsmpeg"
13 BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg libogg-dev \
14 lua-dev openal-dev libsdl-dev libsdl-image-dev libsmpeg-dev scons chrpath pkg-config libsmpeg-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h
21 scons
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/lib/btanks $fs/usr/share/applications $fs/usr/bin
28 cp -a $src/*.so $fs/usr/lib/btanks
29 cp -a $src/btanks $fs/usr/bin/btanks-bin
30 cp -a $src/bted $fs/usr/bin/bted-bin
32 cp -a $stuff/btanks_script $fs/usr/bin/btanks
33 cp -a $stuff/bted_script $fs/usr/bin/bted
34 chmod +x $fs/usr/bin/btanks
35 chmod +x $fs/usr/bin/bted
37 mkdir -p $fs/usr/share/btanks
39 # Make settings saveable
41 touch $fs/usr/share/btanks/bt.xml
42 chgrp 1000 $fs/usr/share/btanks/bt.xml
43 chmod 664 $fs/usr/share/btanks/bt.xml
45 ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \
46 ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1
48 ls -1 $fs/usr/lib/btanks/ | while read A; do
49 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
50 done
52 # game data
53 cp -a $src/data $fs/usr/share/btanks
54 }