# Contributor: David Demelier # Maintainer: David Demelier pkgname=surgescript pkgver=0.5.6.1 pkgrel=0 pkgdesc="scripting language for games" url="https://docs.opensurge2d.org" arch="all" license="Apache-2.0" makedepends="cmake" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/alemart/surgescript/archive/refs/tags/v$pkgver.tar.gz" options="!check" # No tests. build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 8f5ab3bb0b76e1d80690a72bca11cb7dfb60525bc2e9c9b4d4b145ed61f546270628716539ff98fb77348d7e6e91c67f0b48f297b2c9f5f35387e3d1773519b6 surgescript-0.5.6.1.tar.gz "