wok-next diff btanks/receipt @ rev 7549

Added jpeg-dev to gdk-pixbuf-dev depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Dec 07 23:26:56 2010 +0000 (2010-12-07)
parents
children d1768332cee0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/btanks/receipt	Tue Dec 07 23:26:56 2010 +0000
     1.3 @@ -0,0 +1,51 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="btanks"
     1.7 +VERSION="0.9.8083"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="A fast 2d tank arcade game with multiplayer and split-screen modes."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="expat mesa libsigc++ libvorbis lua openal libsdl libsdl-image libsmpeg"
    1.12 +BUILD_DEPENDS="expat-dev mesa-dev libsigc++-dev libvorbis libvorbis-dev libogg libogg-dev lua-dev openal-dev libsdl-dev libsdl-image-dev libsmpeg-dev scons chrpath pkg-config"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://btanks.sourceforge.net"
    1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	scons
    1.22 +}
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	mkdir -p $fs/usr/lib/btanks $fs/usr/share/applications $fs/usr/bin
    1.28 +	cp -a $src/*.so $fs/usr/lib/btanks
    1.29 +	cp -a $src/btanks $fs/usr/bin/btanks-bin
    1.30 +	cp -a $src/bted $fs/usr/bin/bted-bin
    1.31 +
    1.32 +	cp -a $WOK/$PACKAGE/stuff/btanks_script $fs/usr/bin/btanks
    1.33 +	cp -a $WOK/$PACKAGE/stuff/bted_script $fs/usr/bin/bted
    1.34 +	chmod +x $fs/usr/bin/btanks
    1.35 +	chmod +x $fs/usr/bin/bted
    1.36 +
    1.37 +	mkdir -p $fs/usr/share/btanks
    1.38 +
    1.39 +	# Make settings saveable
    1.40 +
    1.41 +	touch $fs/usr/share/btanks/bt.xml
    1.42 +	chgrp 1000 $fs/usr/share/btanks/bt.xml
    1.43 +	chmod 664 $fs/usr/share/btanks/bt.xml
    1.44 +	
    1.45 +	ln -s /usr/bin/btanks-bin $fs/usr/share/btanks/btanks && \
    1.46 +	ln -s /usr/bin/bted-bin $fs/usr/share/btanks/bted || return 1
    1.47 +
    1.48 +	ls -1 $fs/usr/lib/btanks/ | while read A; do
    1.49 +		ln -s /usr/lib/btanks/$A $fs/usr/share/btanks/$A || return 1
    1.50 +	done
    1.51 +
    1.52 +	# game data
    1.53 +	cp -a $src/data $fs/usr/share/btanks
    1.54 +}