# Contributor: KikooDX # Maintainer: KikooDX pkgname=mkg3a pkgver=0.5.0 pkgrel=1 pkgdesc="utility for creating Casio Prizm add-on (.g3a) files" url="https://gitlab.com/taricorp/mkg3a" arch="all" license="Zlib" makedepends="libpng-dev cmake" subpackages="$pkgname-doc" options="!check" # there is no test suite source="$pkgname-$pkgver.tar.gz::https://gitlab.com/taricorp/mkg3a/-/archive/$pkgver/mkg3a-$pkgver.tar.gz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ $CMAKE_CROSSOPTS cmake --build build } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="a65f58e3691892473d3a56c6f56155dafe37bfc5e31a112978ed1c0c82f60d67715949a807cb5a8beb8d3441501c20c6ff2432e0c12270900f2fe343baf31fe8 mkg3a-0.5.0.tar.gz"