# HG changeset patch # User Pascal Bellard # Date 1242203354 -7200 # Node ID 663221981524013220aac3f8fe5cb51f3bc3002a # Parent 3ae16248b5b1729b0496621070844566f948309d Add wesnoth (thanks mimas) diff -r 3ae16248b5b1 -r 663221981524 wesnoth-music/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wesnoth-music/receipt Wed May 13 10:29:14 2009 +0200 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="wesnoth-music" +VERSION="1.6.2" +CATEGORY="games" +SHORT_DESC="Music files for wesnoth" +MAINTAINER="mimas@slitaz.org" +WANTED="wesnoth" + + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/wesnoth/data/core + cp -a $_pkg/usr/share/wesnoth/data/core/music $fs/usr/share/wesnoth/data/core +} + diff -r 3ae16248b5b1 -r 663221981524 wesnoth/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wesnoth/receipt Wed May 13 10:29:14 2009 +0200 @@ -0,0 +1,57 @@ +# SliTaz package receipt. + +PACKAGE="wesnoth" +VERSION="1.6.2" +CATEGORY="games" +SHORT_DESC="Turn based strategy game" +MAINTAINER="mimas@slitaz.org" +DEPENDS="libSDL libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango cairo fontconfig libboost-regex libboost-iostreams libpng" +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" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.wesnoth.org/" +WGET_URL="$SF_MIRROR/wesnoth/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr $CONFIGURE_ARGS && \ + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + # programs + mkdir -p $fs/usr/bin + cp $_pkg/usr/bin/wesnoth $fs/usr/bin/ + + # data + mkdir -p $fs/usr/share/wesnoth/ + cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/ + cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ + cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/ + cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/ + cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ + + mkdir $fs/usr/share/wesnoth/translations + if [ ! "$LOCALE" = "" ]; then + for i in $LOCALE + do + cp -a $_pkg/usr/share/wesnoth/translations/$i \ + $fs/usr/share/wesnoth/translations + done + else + cp -a $_pkg/usr/share/wesnoth/translations \ + $fs/usr/share/wesnoth/ + fi + + # Remove music + rm $fs/usr/share/wesnoth/data/core/music/*.ogg + + # finalize + cp -a $_pkg/usr/share/applications $fs/usr/share + cp -a $_pkg/usr/share/icons $fs/usr/share + +} +