wok-current view btanks/receipt @ rev 19310

Up cacerts (20160512)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 11 21:34:51 2016 +0300 (2016-07-11)
parents a5f6371c3254
children 5f6c5106b1f5
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 LICENSE="GPL2"
9 WEB_SITE="http://btanks.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="expat mesa libsigc++ libvorbis lua5.1 openal libsdl libsdl-image libsmpeg"
14 BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg \
15 libogg-dev lua5.1-dev openal-dev libsdl-dev libsdl-image-dev libsmpeg-dev scons \
16 chrpath pkg-config libsmpeg-dev lua5.1"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h
23 scons
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p \
30 $fs/usr/bin \
31 $fs/usr/lib/btanks \
32 $fs/usr/share/applications \
33 $fs/usr/share/btanks
35 # libs
36 cp -a $src/*.so $fs/usr/lib/btanks
38 ls -1 $fs/usr/lib/btanks/ | while read A; do
39 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
40 done
42 # executables & wrappers
43 cp -a $src/btanks $fs/usr/bin/btanks-bin
44 cp -a $src/bted $fs/usr/bin/bted-bin
46 cp -a $stuff/btanks_script $fs/usr/bin/btanks
47 cp -a $stuff/bted_script $fs/usr/bin/bted
48 chmod +x $fs/usr/bin/btanks
49 chmod +x $fs/usr/bin/bted
51 ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \
52 ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1
54 # game data
55 cp -a $src/data $fs/usr/share/btanks
56 chown -R root:root $fs
57 chmod a-x $fs/usr/share/btanks/data/sounds/boomerang-missile.ogg
59 # make settings saveable
60 SETTINGS=$fs/usr/share/btanks/bt.xml
61 touch $SETTINGS
62 chgrp 100 $SETTINGS
63 chmod 664 $SETTINGS
64 }