wok-next view btanks/receipt @ rev 21379
updated mspdebug (0.17 -> 0.25)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 16:31:49 2020 +0100 (2020-04-16) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://btanks.sourceforge.net/blog/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg \
15 libogg-dev lua5.1-dev openal-dev sdl-dev sdl-image-dev smpeg-dev scons2 \
16 chrpath smpeg-dev lua5.1 zlib-dev"
18 compile_rules() {
19 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h
20 scons
21 }
23 genpkg_rules() {
24 mkdir -p \
25 $fs/usr/bin \
26 $fs/usr/lib/btanks \
27 $fs/usr/share/applications \
28 $fs/usr/share/btanks
30 # libs
31 cp -a $src/*.so $fs/usr/lib/btanks
33 ls -1 $fs/usr/lib/btanks/ | while read A; do
34 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
35 done
37 # executables & wrappers
38 cp -a $src/btanks $fs/usr/bin/btanks-bin
39 cp -a $src/bted $fs/usr/bin/bted-bin
41 cp -a $stuff/btanks_script $fs/usr/bin/btanks
42 cp -a $stuff/bted_script $fs/usr/bin/bted
43 chmod +x $fs/usr/bin/btanks
44 chmod +x $fs/usr/bin/bted
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 # game data
50 cp -a $src/data $fs/usr/share/btanks
51 chown -R root:root $fs
52 chmod a-x $fs/usr/share/btanks/data/sounds/boomerang-missile.ogg
54 # make settings saveable
55 SETTINGS=$fs/usr/share/btanks/bt.xml
56 touch $SETTINGS
57 chgrp 100 $SETTINGS
58 chmod 664 $SETTINGS
59 DEPENDS="expat mesa libsigc++ libvorbis lua5.1 openal sdl sdl-image smpeg"
60 }