wok-6.x view wesnoth/receipt @ rev 22210
updated xorg-libXcursor and xorg-libXcursor-dev (1.1.14 -> 1.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Nov 11 14:48:36 2019 +0100 (2019-11-11) |
parents | 4cc128a1bc43 |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wesnoth"
4 VERSION="1.14.7"
5 CATEGORY="games"
6 TAGS="strategy"
7 SHORT_DESC="Turn based strategy game."
8 MAINTAINER="mimas@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.wesnoth.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"
15 DEPENDS="cairo fontconfig fribidi gcc-lib-base libboost-filesystem \
16 libboost-iostreams libboost-math libboost-program-options libboost-regex \
17 libboost-system libboost-thread libpng libsdl2 libsdl2-image \
18 libsdl2-mixer libsdl2-net libsdl2-ttf pango xcb-util zlib"
19 BUILD_DEPENDS="autoconf automake cairo-dev cmake dbus-dev findutils \
20 fontconfig-dev freetype-dev fribidi-dev gcc83 libboost-filesystem-dev \
21 libboost-iostreams-dev libboost-math-dev libboost-program-options-dev \
22 libboost-regex-dev libboost-serialization-dev libboost-system-dev \
23 libboost-thread-dev libpng-dev libsdl2-dev libsdl2-image-dev \
24 libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf libsdl2-ttf-dev \
25 lua-dev openssl-dev pango-dev"
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export CC=gcc-83
31 export CXX=g++-83
33 cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
34 make $MAKEFLAGS &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 # programs
42 mkdir -p $fs/usr/bin
43 cp $install/usr/bin/wesnoth $fs/usr/bin/
45 # data
46 mkdir -p $fs/usr/share/wesnoth/
47 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
48 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
49 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
50 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
52 mkdir $fs/usr/share/wesnoth/translations
53 if [ ! "$LOCALE" = "" ]; then
54 for i in $LOCALE
55 do
56 cp -a $install/usr/share/wesnoth/translations/$i \
57 $fs/usr/share/wesnoth/translations
58 done
59 else
60 cp -a $install/usr/share/wesnoth/translations \
61 $fs/usr/share/wesnoth/
62 fi
64 # Remove music
65 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
67 # finalize
68 cp -a $install/usr/share/applications $fs/usr/share
69 cp -a $install/usr/share/pixmaps $fs/usr/share
70 }