blob: 3f9fa9fd316ed2f6118f2d1d78103109b2a0f191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Carl Smedstad <carsme@archlinux.org>
# Contributor: BrinkerVII <brinkervii@gmail.com>
pkgname=luau
pkgver=0.652
pkgrel=1
pkgdesc="A fast, small, safe, gradually typed embeddable scripting language derived from Lua"
arch=(x86_64)
url="https://github.com/luau-lang/luau"
license=(MIT)
depends=(
gcc-libs
glibc
)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('56c904c5ea25e537bdc8675ed52f5f0b56eb3d6e960fb9f93b8443229076f518')
build() {
cd $pkgname-$pkgver
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev \
-DLUAU_BUILD_TESTS=ON \
-DCMAKE_CXX_FLAGS="-Wstringop-overread"
cmake --build build
}
check() {
cd $pkgname-$pkgver
./build/Luau.Conformance
./build/Luau.UnitTest
}
package() {
cd $pkgname-$pkgver
local executables=(
luau
luau-analyze
luau-ast
luau-bytecode
luau-compile
luau-reduce
)
for executable in "${executables[@]}"; do
install -Dm755 -t "$pkgdir/usr/bin" "build/$executable"
done
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
install -Dm644 \
extern/isocline/LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/isocline-LICENSE.txt"
}
|