wok view btanks/receipt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (2022-09-23)
parents 223b265f40fd
children 7dd01dedad38
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/btanks/files/btanks-source/ 2>/dev/null | \
22 sed '/scope="row/!d;/tar/!d;s|.*/btanks-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h
30 scons
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p \
37 $fs/usr/bin \
38 $fs/usr/lib/btanks \
39 $fs/usr/share/applications \
40 $fs/usr/share/btanks
42 # libs
43 cp -a $src/*.so $fs/usr/lib/btanks
45 ls -1 $fs/usr/lib/btanks/ | while read A; do
46 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
47 done
49 # executables & wrappers
50 cp -a $src/btanks $fs/usr/bin/btanks-bin
51 cp -a $src/bted $fs/usr/bin/bted-bin
53 cp -a $stuff/btanks_script $fs/usr/bin/btanks
54 cp -a $stuff/bted_script $fs/usr/bin/bted
55 chmod +x $fs/usr/bin/btanks
56 chmod +x $fs/usr/bin/bted
58 ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \
59 ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1
61 # game data
62 cp -a $src/data $fs/usr/share/btanks
63 chown -R root:root $fs
64 chmod a-x $fs/usr/share/btanks/data/sounds/boomerang-missile.ogg
66 # make settings saveable
67 SETTINGS=$fs/usr/share/btanks/bt.xml
68 touch $SETTINGS
69 chgrp 100 $SETTINGS
70 chmod 664 $SETTINGS
71 }