wok rev 3049

Add wesnoth (thanks mimas)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 13 10:29:14 2009 +0200 (2009-05-13)
parents 3ae16248b5b1
children 36fea3ddfc1c
files wesnoth-music/receipt wesnoth/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wesnoth-music/receipt	Wed May 13 10:29:14 2009 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="wesnoth-music"
     1.7 +VERSION="1.6.2"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Music files for wesnoth"
    1.10 +MAINTAINER="mimas@slitaz.org"
    1.11 +WANTED="wesnoth"
    1.12 +
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr/share/wesnoth/data/core
    1.18 +	cp -a $_pkg/usr/share/wesnoth/data/core/music $fs/usr/share/wesnoth/data/core
    1.19 +}
    1.20 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/wesnoth/receipt	Wed May 13 10:29:14 2009 +0200
     2.3 @@ -0,0 +1,57 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="wesnoth"
     2.7 +VERSION="1.6.2"
     2.8 +CATEGORY="games"
     2.9 +SHORT_DESC="Turn based strategy game"
    2.10 +MAINTAINER="mimas@slitaz.org"
    2.11 +DEPENDS="libSDL libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango cairo fontconfig libboost-regex libboost-iostreams libpng"
    2.12 +BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libSDL-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.14 +WEB_SITE="http://www.wesnoth.org/"
    2.15 +WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +	cd $src
    2.21 +	./configure --prefix=/usr $CONFIGURE_ARGS && \
    2.22 +	make && make DESTDIR=$PWD/_pkg install
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	# programs
    2.29 +	mkdir -p $fs/usr/bin
    2.30 +	cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
    2.31 +
    2.32 +	# data
    2.33 +	mkdir -p $fs/usr/share/wesnoth/
    2.34 +	cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
    2.35 +	cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
    2.36 +	cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/
    2.37 +	cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
    2.38 +	cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
    2.39 +
    2.40 +	mkdir $fs/usr/share/wesnoth/translations
    2.41 +	if [ ! "$LOCALE" = "" ]; then
    2.42 +		for i in $LOCALE
    2.43 +		do
    2.44 +			cp -a $_pkg/usr/share/wesnoth/translations/$i \
    2.45 +				$fs/usr/share/wesnoth/translations
    2.46 +		done		
    2.47 +	else
    2.48 +		cp -a $_pkg/usr/share/wesnoth/translations \
    2.49 +			$fs/usr/share/wesnoth/
    2.50 +	fi
    2.51 +	
    2.52 +	# Remove music
    2.53 +	rm $fs/usr/share/wesnoth/data/core/music/*.ogg
    2.54 +
    2.55 +	# finalize
    2.56 +	cp -a $_pkg/usr/share/applications $fs/usr/share
    2.57 +	cp -a $_pkg/usr/share/icons $fs/usr/share
    2.58 +
    2.59 +}
    2.60 +