wok view wesnoth/receipt @ rev 25687

updated sc-im (0.8.2 -> 0.8.3)
author Hans-G?nter Theisgen
date Thu Apr 11 14:51:51 2024 +0100 (7 months ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
31 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 export CC=gcc-83
38 export CXX=g++-83
40 cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 # programs
49 mkdir -p $fs/usr/bin
50 cp $install/usr/bin/wesnoth $fs/usr/bin/
52 # data
53 mkdir -p $fs/usr/share/wesnoth/
54 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
55 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
56 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
57 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
59 mkdir $fs/usr/share/wesnoth/translations
60 if [ ! "$LOCALE" = "" ]; then
61 for i in $LOCALE
62 do
63 cp -a $install/usr/share/wesnoth/translations/$i \
64 $fs/usr/share/wesnoth/translations
65 done
66 else
67 cp -a $install/usr/share/wesnoth/translations \
68 $fs/usr/share/wesnoth/
69 fi
71 # Remove music
72 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
74 # finalize
75 cp -a $install/usr/share/applications $fs/usr/share
76 cp -a $install/usr/share/pixmaps $fs/usr/share
77 }