wok annotate btanks/receipt @ rev 20998
updated gqview (2.0.4 -> 2.1.5)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 08 13:18:18 2019 +0100 (2019-03-08) |
parents | a5f6371c3254 |
children | 5f6c5106b1f5 |
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 |
slaxemulator@6695 | 18 # Rules to configure and make the package. |
slaxemulator@6695 | 19 compile_rules() |
slaxemulator@6695 | 20 { |
slaxemulator@6695 | 21 cd $src |
pascal@13147 | 22 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h |
slaxemulator@6695 | 23 scons |
slaxemulator@6695 | 24 } |
slaxemulator@6695 | 25 |
slaxemulator@6695 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6695 | 27 genpkg_rules() |
slaxemulator@6695 | 28 { |
al@14789 | 29 mkdir -p \ |
al@14789 | 30 $fs/usr/bin \ |
al@14789 | 31 $fs/usr/lib/btanks \ |
al@14789 | 32 $fs/usr/share/applications \ |
al@14789 | 33 $fs/usr/share/btanks |
al@14789 | 34 |
al@14789 | 35 # libs |
slaxemulator@6695 | 36 cp -a $src/*.so $fs/usr/lib/btanks |
al@14789 | 37 |
al@14789 | 38 ls -1 $fs/usr/lib/btanks/ | while read A; do |
al@14789 | 39 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1 |
al@14789 | 40 done |
al@14789 | 41 |
al@14789 | 42 # executables & wrappers |
slaxemulator@6695 | 43 cp -a $src/btanks $fs/usr/bin/btanks-bin |
slaxemulator@6695 | 44 cp -a $src/bted $fs/usr/bin/bted-bin |
slaxemulator@6695 | 45 |
slaxemulator@9700 | 46 cp -a $stuff/btanks_script $fs/usr/bin/btanks |
slaxemulator@9700 | 47 cp -a $stuff/bted_script $fs/usr/bin/bted |
slaxemulator@6695 | 48 chmod +x $fs/usr/bin/btanks |
slaxemulator@6695 | 49 chmod +x $fs/usr/bin/bted |
slaxemulator@6695 | 50 |
slaxemulator@6695 | 51 ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \ |
slaxemulator@6695 | 52 ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1 |
slaxemulator@6695 | 53 |
slaxemulator@6695 | 54 # game data |
slaxemulator@6695 | 55 cp -a $src/data $fs/usr/share/btanks |
al@14789 | 56 chown -R root:root $fs |
al@14789 | 57 chmod a-x $fs/usr/share/btanks/data/sounds/boomerang-missile.ogg |
al@14789 | 58 |
al@14789 | 59 # make settings saveable |
al@14789 | 60 SETTINGS=$fs/usr/share/btanks/bt.xml |
al@14789 | 61 touch $SETTINGS |
al@14792 | 62 chgrp 100 $SETTINGS |
al@14789 | 63 chmod 664 $SETTINGS |
slaxemulator@6695 | 64 } |