wok-current annotate btanks/receipt @ rev 24944

updated n2n (2.4 -> 3.0)
author Hans-G?nter Theisgen
date Fri Apr 22 16:44:33 2022 +0100 (2022-04-22)
parents 223b265f40fd
children 7dd01dedad38
rev   line source
slaxemulator@6695 1 # SliTaz package receipt.
slaxemulator@6695 2
slaxemulator@6695 3 PACKAGE="btanks"
slaxemulator@6695 4 VERSION="0.9.8083"
slaxemulator@6695 5 CATEGORY="games"
slaxemulator@6695 6 SHORT_DESC="A fast 2d tank arcade game with multiplayer and split-screen modes."
slaxemulator@6695 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15202 8 LICENSE="GPL2"
al@14789 9 WEB_SITE="http://btanks.sourceforge.net/"
slaxemulator@6695 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@6695 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@6695 12
pascal@13859 13 DEPENDS="expat mesa libsigc++ libvorbis lua5.1 openal libsdl libsdl-image libsmpeg"
pascal@13796 14 BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg \
pascal@13859 15 libogg-dev lua5.1-dev openal-dev libsdl-dev libsdl-image-dev libsmpeg-dev scons \
pascal@13859 16 chrpath pkg-config libsmpeg-dev lua5.1"
erjo@9967 17
pascal@24340 18 # What is the latest version available today?
pascal@24340 19 current_version()
pascal@24340 20 {
pascal@24340 21 wget -O - https://sourceforge.net/projects/btanks/files/btanks-source/ 2>/dev/null | \
pascal@24340 22 sed '/scope="row/!d;/tar/!d;s|.*/btanks-||;s|.tar.*||;q'
pascal@24340 23 }
pascal@24340 24
slaxemulator@6695 25 # Rules to configure and make the package.
slaxemulator@6695 26 compile_rules()
slaxemulator@6695 27 {
slaxemulator@6695 28 cd $src
pascal@13147 29 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h
slaxemulator@6695 30 scons
slaxemulator@6695 31 }
slaxemulator@6695 32
slaxemulator@6695 33 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6695 34 genpkg_rules()
slaxemulator@6695 35 {
al@14789 36 mkdir -p \
al@14789 37 $fs/usr/bin \
al@14789 38 $fs/usr/lib/btanks \
al@14789 39 $fs/usr/share/applications \
al@14789 40 $fs/usr/share/btanks
al@14789 41
al@14789 42 # libs
slaxemulator@6695 43 cp -a $src/*.so $fs/usr/lib/btanks
al@14789 44
al@14789 45 ls -1 $fs/usr/lib/btanks/ | while read A; do
al@14789 46 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
al@14789 47 done
al@14789 48
al@14789 49 # executables & wrappers
slaxemulator@6695 50 cp -a $src/btanks $fs/usr/bin/btanks-bin
slaxemulator@6695 51 cp -a $src/bted $fs/usr/bin/bted-bin
slaxemulator@6695 52
slaxemulator@9700 53 cp -a $stuff/btanks_script $fs/usr/bin/btanks
slaxemulator@9700 54 cp -a $stuff/bted_script $fs/usr/bin/bted
slaxemulator@6695 55 chmod +x $fs/usr/bin/btanks
slaxemulator@6695 56 chmod +x $fs/usr/bin/bted
slaxemulator@6695 57
slaxemulator@6695 58 ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \
slaxemulator@6695 59 ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1
slaxemulator@6695 60
slaxemulator@6695 61 # game data
slaxemulator@6695 62 cp -a $src/data $fs/usr/share/btanks
al@14789 63 chown -R root:root $fs
al@14789 64 chmod a-x $fs/usr/share/btanks/data/sounds/boomerang-missile.ogg
al@14789 65
al@14789 66 # make settings saveable
al@14789 67 SETTINGS=$fs/usr/share/btanks/bt.xml
al@14789 68 touch $SETTINGS
al@14792 69 chgrp 100 $SETTINGS
al@14789 70 chmod 664 $SETTINGS
slaxemulator@6695 71 }