wok-6.x annotate btanks/receipt @ rev 13481

busybox: use slitaz-base httphelper.sh
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 11 13:43:57 2012 +0200 (2012-10-11)
parents f09d07ae1550
children 6b09507225ec
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"
slaxemulator@6695 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@6695 9 WEB_SITE="http://btanks.sourceforge.net"
slaxemulator@6695 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@6695 11
erjo@9967 12 DEPENDS="expat mesa libsigc++ libvorbis lua openal libsdl libsdl-image libsmpeg"
erjo@9967 13 BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg libogg-dev \
erjo@9967 14 lua-dev openal-dev libsdl-dev libsdl-image-dev libsmpeg-dev scons chrpath pkg-config libsmpeg-dev"
erjo@9967 15
slaxemulator@6695 16 # Rules to configure and make the package.
slaxemulator@6695 17 compile_rules()
slaxemulator@6695 18 {
slaxemulator@6695 19 cd $src
pascal@13147 20 sed -i 's/#define *NULL.*/#define NULL 0/g' engine/sl08/sl08.h
slaxemulator@6695 21 scons
slaxemulator@6695 22 }
slaxemulator@6695 23
slaxemulator@6695 24 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6695 25 genpkg_rules()
slaxemulator@6695 26 {
slaxemulator@6695 27 mkdir -p $fs/usr/lib/btanks $fs/usr/share/applications $fs/usr/bin
slaxemulator@6695 28 cp -a $src/*.so $fs/usr/lib/btanks
slaxemulator@6695 29 cp -a $src/btanks $fs/usr/bin/btanks-bin
slaxemulator@6695 30 cp -a $src/bted $fs/usr/bin/bted-bin
slaxemulator@6695 31
slaxemulator@9700 32 cp -a $stuff/btanks_script $fs/usr/bin/btanks
slaxemulator@9700 33 cp -a $stuff/bted_script $fs/usr/bin/bted
slaxemulator@6695 34 chmod +x $fs/usr/bin/btanks
slaxemulator@6695 35 chmod +x $fs/usr/bin/bted
slaxemulator@6695 36
slaxemulator@6695 37 mkdir -p $fs/usr/share/btanks
slaxemulator@6695 38
slaxemulator@6695 39 # Make settings saveable
slaxemulator@6695 40
slaxemulator@6695 41 touch $fs/usr/share/btanks/bt.xml
slaxemulator@6695 42 chgrp 1000 $fs/usr/share/btanks/bt.xml
slaxemulator@6695 43 chmod 664 $fs/usr/share/btanks/bt.xml
slaxemulator@6695 44
slaxemulator@6695 45 ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \
slaxemulator@6695 46 ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1
slaxemulator@6695 47
slaxemulator@6695 48 ls -1 $fs/usr/lib/btanks/ | while read A; do
slaxemulator@6695 49 ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
slaxemulator@6695 50 done
slaxemulator@6695 51
slaxemulator@6695 52 # game data
slaxemulator@6695 53 cp -a $src/data $fs/usr/share/btanks
slaxemulator@6695 54 }