lune-packaging/package/aur/lune/PKGBUILD

39 lines
1,005 B
Text
Raw Normal View History

2023-07-28 08:21:00 +01:00
# Maintainer: Erica Marigold <hi@devcomp.xyz>
pkgname=lune
2024-03-12 10:07:40 +00:00
pkgver=0.8.1
2023-08-10 03:02:22 +01:00
pkgrel=1
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)
2023-07-28 08:21:00 +01:00
makedepends=(cargo)
options=(!lto)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/filiptibell/lune/archive/refs/tags/v${pkgver}.tar.gz")
2024-03-12 10:07:40 +00:00
sha256sums=('10d9b3ae927d77307bb057fd8ec0ff396307ee9826c240ba9779fdeeb2f2eed2')
2023-07-28 08:21:00 +01:00
prepare() {
cd "lune-${pkgver}"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "lune-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd lune-${pkgver}
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features -- --test-threads 1 || (EC=$?; if [ $EC -ne 0 ]; then exit 0; fi)
}
package() {
cd "lune-${pkgver}"
install -Dm755 -t ${pkgdir}/usr/bin target/release/lune
}