# SliTaz package receipt. PACKAGE="wesnoth" VERSION="1.14.7" CATEGORY="games" TAGS="strategy" SHORT_DESC="Turn based strategy game." MAINTAINER="mimas@slitaz.org" LICENSE="GPL2" WEB_SITE="https://www.wesnoth.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz" DEPENDS="cairo fontconfig fribidi gcc-lib-base libboost-filesystem \ libboost-iostreams libboost-math libboost-program-options libboost-regex \ libboost-system libboost-thread libpng libsdl2 libsdl2-image \ libsdl2-mixer libsdl2-net libsdl2-ttf pango xcb-util zlib" BUILD_DEPENDS="autoconf automake cairo-dev cmake dbus-dev findutils \ fontconfig-dev freetype-dev fribidi-dev gcc83 libboost-filesystem-dev \ libboost-iostreams-dev libboost-math-dev libboost-program-options-dev \ libboost-regex-dev libboost-serialization-dev libboost-system-dev \ libboost-thread-dev libpng-dev libsdl2-dev libsdl2-image-dev \ libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf libsdl2-ttf-dev \ lua-dev openssl-dev pango-dev" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { export CC=gcc-83 export CXX=g++-83 cmake -DCMAKE_INSTALL_PREFIX=/usr . && make $MAKEFLAGS && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { # programs mkdir -p $fs/usr/bin cp $install/usr/bin/wesnoth $fs/usr/bin/ # data mkdir -p $fs/usr/share/wesnoth/ cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/ cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/ cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ mkdir $fs/usr/share/wesnoth/translations if [ ! "$LOCALE" = "" ]; then for i in $LOCALE do cp -a $install/usr/share/wesnoth/translations/$i \ $fs/usr/share/wesnoth/translations done else cp -a $install/usr/share/wesnoth/translations \ $fs/usr/share/wesnoth/ fi # Remove music rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null # finalize cp -a $install/usr/share/applications $fs/usr/share cp -a $install/usr/share/pixmaps $fs/usr/share }