aboutsummaryrefslogtreecommitdiffstats
path: root/community/luau/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/luau/APKBUILD')
-rw-r--r--community/luau/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/luau/APKBUILD b/community/luau/APKBUILD
new file mode 100644
index 00000000000..95bf48838a6
--- /dev/null
+++ b/community/luau/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Rob Blanckaert <basicer@gmail.com>
+# Maintainer: Rob Blanckaert <basicer@gmail.com>
+pkgname=luau
+pkgver=0.612
+pkgrel=0
+pkgdesc="A fast, small, safe, gradually typed embeddable scripting language derived from Lua"
+url="https://github.com/roblox/luau"
+arch="all"
+license="MIT"
+makedepends="cmake linux-headers samurai"
+source="
+$pkgname-$pkgver.tar.gz::https://github.com/luau-lang/luau/archive/refs/tags/$pkgver.tar.gz
+weak-unwind.patch
+"
+
+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
+ install -Dm755 build/luau-compile "$pkgdir"/usr/bin/luau-compile
+}
+
+sha512sums="
+442c1528e119e9ad8b58b76cafdca5b59240be04852851f3bb3566276e2ee8b13f65b0225b3db6ef3f8e459b3d3ff7f665a7684c7bef7d588dd9f7f493b13389 luau-0.612.tar.gz
+7589340a874cd99d26d5eced8015b52fa4e151c4801e60ddd98fd948486a25c21372120fa02abc610d5aa157eeb9dd008835f81da04be0be3f319841405129f8 weak-unwind.patch
+"