wok view wesnoth/receipt @ rev 25279

updated rfkill (0.5 -> 1.0)
author Hans-G?nter Theisgen
date Mon Jul 18 15:03:30 2022 +0100 (2022-07-18)
parents 57994a26cb11
children 0262035dc1e7
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 current_version()
28 {
29 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
30 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 export CC=gcc-83
37 export CXX=g++-83
39 cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 # programs
48 mkdir -p $fs/usr/bin
49 cp $install/usr/bin/wesnoth $fs/usr/bin/
51 # data
52 mkdir -p $fs/usr/share/wesnoth/
53 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
54 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
55 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
56 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
58 mkdir $fs/usr/share/wesnoth/translations
59 if [ ! "$LOCALE" = "" ]; then
60 for i in $LOCALE
61 do
62 cp -a $install/usr/share/wesnoth/translations/$i \
63 $fs/usr/share/wesnoth/translations
64 done
65 else
66 cp -a $install/usr/share/wesnoth/translations \
67 $fs/usr/share/wesnoth/
68 fi
70 # Remove music
71 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
73 # finalize
74 cp -a $install/usr/share/applications $fs/usr/share
75 cp -a $install/usr/share/pixmaps $fs/usr/share
76 }