wok view wesnoth/receipt @ rev 17354
Up: audacity (2.0.6)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Nov 16 00:18:13 2014 +0000 (2014-11-16) |
parents | 1a058ee0e4c2 |
children | 4cc128a1bc43 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wesnoth"
4 VERSION="1.10.3"
5 CATEGORY="games"
6 SHORT_DESC="Turn based strategy game"
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.wesnoth.org/"
11 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
12 TAGS="strategy"
14 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \
15 cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \
16 xcb-util libboost-system libboost-program-options"
17 BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \
18 libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \
19 lua-dev libboost-serialization-dev autoconf automake fribidi-dev \
20 libboost-system-dev libboost-program-options-dev cmake"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 cmake -DCMAKE_INSTALL_PREFIX=/usr .
27 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 # programs
34 mkdir -p $fs/usr/bin
35 cp $install/usr/bin/wesnoth $fs/usr/bin/
37 # data
38 mkdir -p $fs/usr/share/wesnoth/
39 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
40 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
41 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
42 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
44 mkdir $fs/usr/share/wesnoth/translations
45 if [ ! "$LOCALE" = "" ]; then
46 for i in $LOCALE
47 do
48 cp -a $install/usr/share/wesnoth/translations/$i \
49 $fs/usr/share/wesnoth/translations
50 done
51 else
52 cp -a $install/usr/share/wesnoth/translations \
53 $fs/usr/share/wesnoth/
54 fi
56 # Remove music
57 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
59 # finalize
60 cp -a $install/usr/share/applications $fs/usr/share
61 cp -a $install/usr/share/pixmaps $fs/usr/share
63 }