wok-next view wesnoth/receipt @ rev 20709
cdrdao: add patch.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 26 17:09:29 2018 +0300 (2018-05-26) |
parents | 7eb047d2b438 |
children | a244e109372e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="wesnoth"
4 VERSION="1.12.6"
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/wesnoth-${VERSION%.*}/$PACKAGE-$VERSION/$TARBALL"
12 TAGS="strategy"
14 BUILD_DEPENDS="cairo-dev pango-dev libboost-dev libboost-regex \
15 libboost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \
16 libsdl-image-dev libsdl-net-dev libpng16-dev freetype-dev fontconfig-dev \
17 findutils lua-dev libboost-serialization autoconf automake fribidi-dev \
18 libboost-system libboost-program-options libboost-filesystem libboost-locale \
19 libvorbis-dev cmake gettext-tools"
20 SPLIT="wesnoth-music"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cmake -DCMAKE_INSTALL_PREFIX=/usr .
26 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 case $PACKAGE in
33 wesnoth)
34 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net \
35 libsdl-image zlib pango cairo fontconfig \
36 libboost-regex libboost-iostreams libpng16 fribidi \
37 gcc-lib-base xorg-xcb-util libboost-system \
38 libboost-program-options"
39 # programs
40 mkdir -p $fs/usr/bin
41 cp $install/usr/bin/wesnoth $fs/usr/bin/
43 # data
44 mkdir -p $fs/usr/share/wesnoth/
45 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
46 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
47 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
48 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
50 mkdir $fs/usr/share/wesnoth/translations
51 if [ ! "$LOCALE" = "" ]; then
52 for i in $LOCALE
53 do
54 cp -a $install/usr/share/wesnoth/translations/$i \
55 $fs/usr/share/wesnoth/translations
56 done
57 else
58 cp -a $install/usr/share/wesnoth/translations \
59 $fs/usr/share/wesnoth/
60 fi
62 # Remove music
63 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
65 # finalize
66 cp -a $install/usr/share/applications $fs/usr/share
67 cp -a $install/usr/share/pixmaps $fs/usr/share
68 ;;
69 wesnoth-music)
70 CAT="games|music files"
71 mkdir -p $fs/usr/share/wesnoth/data/core
72 cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core
73 ;;
74 esac
75 }