wok view wesnoth/receipt @ rev 3590

tazbb: Add tazbbmail (Python mailer for unbuilt pkgs)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jun 28 01:50:53 2009 +0200 (2009-06-28)
parents 36fea3ddfc1c
children 283b42f9a258
line source
1 # SliTaz package receipt.
3 PACKAGE="wesnoth"
4 VERSION="1.6.2"
5 CATEGORY="games"
6 SHORT_DESC="Turn based strategy game"
7 MAINTAINER="mimas@slitaz.org"
8 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango cairo fontconfig libboost-regex libboost-iostreams libpng"
9 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"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.wesnoth.org/"
12 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr $CONFIGURE_ARGS && \
19 make && make DESTDIR=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 # programs
26 mkdir -p $fs/usr/bin
27 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
29 # data
30 mkdir -p $fs/usr/share/wesnoth/
31 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
32 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
33 cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/
34 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
35 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
37 mkdir $fs/usr/share/wesnoth/translations
38 if [ ! "$LOCALE" = "" ]; then
39 for i in $LOCALE
40 do
41 cp -a $_pkg/usr/share/wesnoth/translations/$i \
42 $fs/usr/share/wesnoth/translations
43 done
44 else
45 cp -a $_pkg/usr/share/wesnoth/translations \
46 $fs/usr/share/wesnoth/
47 fi
49 # Remove music
50 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
52 # finalize
53 cp -a $_pkg/usr/share/applications $fs/usr/share
54 cp -a $_pkg/usr/share/icons $fs/usr/share
56 }