# Contributor: Rob Blanckaert # Maintainer: Rob Blanckaert pkgname=luau pkgver=0.582 pkgrel=0 pkgdesc="A fast, small, safe, gradually typed embeddable scripting language derived from Lua" url="https://github.com/roblox/luau" # arm: doesn't build, __deregister_frame arch="all !armhf !armv7" license="MIT" makedepends="cmake linux-headers samurai" source=" $pkgname-$pkgver.tar.gz::https://github.com/Roblox/luau/archive/refs/tags/$pkgver.tar.gz " 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 \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=MinSizeRel \ $CMAKE_CROSSOPTS cmake --build build } check() { "$builddir"/build/Luau.UnitTest && "$builddir"/build/Luau.Conformance } package() { install -Dm755 build/luau "$pkgdir"/usr/bin/luau install -Dm755 build/luau-analyze "$pkgdir"/usr/bin/luau-analyze } sha512sums=" 83fc78af78c3e2475fe87a4e297dfae3e610523ed488e1265e73cb7ee6678a86703cf401993be1d5cec1701a9ce7e0393108cbf850b958291dec22358a7bfbd6 luau-0.582.tar.gz "