wok-next view wesnoth/receipt @ rev 21037
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 06 16:35:54 2018 +0200 (2018-11-06) |
parents | a244e109372e |
children | 5669e8b3be70 |
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.wesnoth.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="cairo-dev pango-dev boost-dev boost-regex \
15 boost-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 boost-serialization autoconf automake fribidi-dev \
18 boost-system boost-program-options boost-filesystem boost-locale \
19 libvorbis-dev cmake gettext"
20 SPLIT="$PACKAGE-music"
22 compile_rules() {
23 cmake \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 . &&
26 make $MAKEFLAGS &&
27 make DESTDIR=$install install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 wesnoth)
33 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net \
34 libsdl-image zlib pango cairo fontconfig \
35 boost-regex boost-iostreams libpng16 fribidi \
36 gcc-lib-base xorg-xcb-util boost-system \
37 boost-program-options"
38 # programs
39 mkdir -p $fs/usr/bin
40 cp $install/usr/bin/wesnoth $fs/usr/bin/
42 # data
43 mkdir -p $fs/usr/share/wesnoth/
44 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
45 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
46 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
47 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
49 mkdir $fs/usr/share/wesnoth/translations
50 if [ -n "$LOCALE" ]; then
51 for i in $LOCALE; do
52 cp -a $install/usr/share/wesnoth/translations/$i \
53 $fs/usr/share/wesnoth/translations
54 done
55 else
56 cp -a $install/usr/share/wesnoth/translations \
57 $fs/usr/share/wesnoth/
58 fi
60 # Remove music
61 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2>/dev/null
63 # finalize
64 cp -a $install/usr/share/applications $fs/usr/share
65 cp -a $install/usr/share/pixmaps $fs/usr/share
66 TAGS="strategy"
67 ;;
68 *-music)
69 CAT="games|music files"
70 mkdir -p $fs/usr/share/wesnoth/data/core
71 cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core
72 ;;
73 esac
74 }