2023-07-28 08:21:00 +01:00
|
|
|
# Maintainer: Erica Marigold <hi@devcomp.xyz>
|
|
|
|
|
|
|
|
pkgname=lune
|
2024-06-23 13:49:22 +01:00
|
|
|
pkgver=0.8.6
|
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-06-23 13:49:22 +01:00
|
|
|
sha256sums=('4c89eb9ce3469e5de9f74df325febf9fb25a125dc83c40ca3556002290211b70')
|
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
|
|
|
}
|