2023-07-28 08:21:00 +01:00
|
|
|
# Maintainer: Erica Marigold <hi@devcomp.xyz>
|
|
|
|
|
|
|
|
pkgname=lune
|
2024-10-08 06:37:01 +01:00
|
|
|
pkgver=0.8.9
|
2024-04-22 07:14:35 +01:00
|
|
|
pkgrel=2
|
2023-07-28 08:21:00 +01:00
|
|
|
pkgdesc="[Latest Stable Source] A standalone Luau script runtime"
|
|
|
|
arch=(x86_64 aarch64)
|
|
|
|
conflicts=(lune-git lune-bin)
|
|
|
|
url="https://lune-org.github.io/docs"
|
|
|
|
license=(MPL2)
|
2023-08-05 08:00:38 +01:00
|
|
|
depends=(glibc)
|
2024-04-22 07:14:35 +01:00
|
|
|
makedepends=(cargo cmake)
|
2023-07-28 08:21:00 +01:00
|
|
|
options=(!lto)
|
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/filiptibell/lune/archive/refs/tags/v${pkgver}.tar.gz")
|
2024-10-08 06:37:01 +01:00
|
|
|
sha256sums=('b37bdf53dece55037ba00d82fe33a9ace9777cbb42b4d8d6602bcf704c9e1c59')
|
2023-07-28 08:21:00 +01:00
|
|
|
|
|
|
|
prepare() {
|
2024-04-16 10:45:54 +01:00
|
|
|
cd "lune-${pkgver}"
|
|
|
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
2023-07-28 08:21:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-04-16 10:45:54 +01:00
|
|
|
cd "lune-${pkgver}"
|
|
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
|
|
export CARGO_TARGET_DIR=target
|
|
|
|
cargo build --frozen --release --all-features
|
2023-07-28 08:21:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2024-04-16 10:45:54 +01:00
|
|
|
cd lune-${pkgver}
|
|
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
|
|
cargo test --frozen --all-features -- --test-threads 1 || (
|
|
|
|
EC=$?
|
|
|
|
if [ $EC -ne 0 ]; then exit 0; fi
|
|
|
|
)
|
2023-07-28 08:21:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-04-16 10:45:54 +01:00
|
|
|
cd "lune-${pkgver}"
|
|
|
|
install -Dm755 -t ${pkgdir}/usr/bin target/release/lune
|
2023-07-28 08:21:00 +01:00
|
|
|
}
|