# Contributor: David Demelier # Maintainer: David Demelier pkgname=wesnoth pkgver=1.16.8 _major=${pkgver%.*} pkgrel=1 pkgdesc="turn-based strategy game in fantasy world" url="https://www.wesnoth.org" arch="all !riscv64" # textrel on rv64 license="GPL-2.0-only" makedepends=" boost-dev cairo-dev cmake dbus-dev fontconfig-dev libvorbis-dev openssl-dev>3 pango-dev readline-dev samurai sdl2-dev sdl2_image-dev sdl2_mixer-dev " subpackages="$pkgname-doc" source="https://sourceforge.net/projects/wesnoth/files/wesnoth-$_major/wesnoth-$pkgver/wesnoth-$pkgver.tar.bz2" options="!check" # No tests build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ $CMAKE_CROSSOPTS cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 7b0decabcd88abb73fe6edaa745aecd0829b9a5522063e07a53e17e00f0aa62663820e2c8a74f6f8c6c1b1b58508d035aefc180230feb0613abba3a7b986f41f wesnoth-1.16.8.tar.bz2 "