2023-07-28 08:21:00 +01:00
|
|
|
# Maintainer: Erica Marigold <hi@devcomp.xyz>
|
|
|
|
|
2024-08-10 13:38:33 +01:00
|
|
|
pkgname=lune-git
|
2024-10-08 06:37:01 +01:00
|
|
|
pkgver=0.8.9.r0.g010cd36
|
2024-05-13 07:39:42 +01:00
|
|
|
pkgrel=1
|
2023-07-28 08:21:00 +01:00
|
|
|
pkgdesc="[Latest Git Commit] A standalone Luau script runtime"
|
|
|
|
arch=(x86_64 aarch64)
|
|
|
|
conflicts=(lune lune-bin)
|
|
|
|
url="https://lune-org.github.io/docs"
|
|
|
|
license=(MPL2)
|
2023-08-05 08:00:18 +01:00
|
|
|
depends=(glibc)
|
2024-04-22 07:14:35 +01:00
|
|
|
makedepends=(cargo cmake git)
|
2023-07-28 08:21:00 +01:00
|
|
|
provides=(lune)
|
|
|
|
conflicts=(lune)
|
|
|
|
options=(!lto)
|
|
|
|
source=("git+https://github.com/filiptibell/lune.git")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd lune
|
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd lune
|
|
|
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd lune
|
|
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
|
|
export CARGO_TARGET_DIR=target
|
|
|
|
cargo build --frozen --release --all-features
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd lune
|
|
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
|
|
cargo test --frozen --all-features -- --test-threads 1 || (EC=$?; if [ $EC -ne 0 ]; then exit 0; fi)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd lune
|
|
|
|
install -Dm755 -t ${pkgdir}/usr/bin target/release/lune
|
|
|
|
}
|