# Contributor: knuxify # Maintainer: knuxify pkgname=easyrpg-player pkgver=0.8 pkgrel=0 pkgdesc="RPG Maker 2000/2003 and EasyRPG games interpreter" url="https://easyrpg.org/player/" arch="all" license="MIT" makedepends="cmake fmt-dev freetype-dev harfbuzz-dev liblcf-dev libpng-dev libsamplerate-dev libsndfile-dev libvorbis-dev mpg123-dev opusfile-dev pixman-dev samurai sdl2-dev zlib-dev " subpackages="$pkgname-doc $pkgname-bash-completion" source="https://easyrpg.org/downloads/player/$pkgver/easyrpg-player-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -GNinja \ $CMAKE_CROSSOPTS cmake --build build } check() { cmake --build build --target check } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" b1caf45284e29706bdd885d132fe7605d1f2972a3b3e238ba2fbd40058ae1c31aac5277fced23bd216153feb9a440a2652ef696b6b310b907fbc3c1376aa03ad easyrpg-player-0.8.tar.xz "