wok annotate wesnoth/receipt @ rev 24868

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