wok view btanks/receipt @ rev 14711
Up ManaPlus
author | Brenton Scott <admin@trixarian.net> |
---|---|
date | Sun Jun 09 16:52:49 2013 +0200 (2013-06-09) |
parents | 6b09507225ec |
children | a7b54d88ae54 |
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 lua5.1 openal libsdl libsdl-image libsmpeg"
13 BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg \
14 libogg-dev lua5.1-dev openal-dev libsdl-dev libsdl-image-dev libsmpeg-dev scons \
15 chrpath pkg-config libsmpeg-dev lua5.1"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h
22 scons
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/lib/btanks $fs/usr/share/applications $fs/usr/bin
29 cp -a $src/*.so $fs/usr/lib/btanks
30 cp -a $src/btanks $fs/usr/bin/btanks-bin
31 cp -a $src/bted $fs/usr/bin/bted-bin
33 cp -a $stuff/btanks_script $fs/usr/bin/btanks
34 cp -a $stuff/bted_script $fs/usr/bin/bted
35 chmod +x $fs/usr/bin/btanks
36 chmod +x $fs/usr/bin/bted
38 mkdir -p $fs/usr/share/btanks
40 # Make settings saveable
42 touch $fs/usr/share/btanks/bt.xml
43 chgrp 1000 $fs/usr/share/btanks/bt.xml
44 chmod 664 $fs/usr/share/btanks/bt.xml
46 ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \
47 ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1
49 ls -1 $fs/usr/lib/btanks/ | while read A; do
50 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
51 done
53 # game data
54 cp -a $src/data $fs/usr/share/btanks
55 }