lune-packaging/package/aur/lune/PKGBUILD

42 lines
1,006 B
Text
Raw Normal View History

2023-07-28 12:51:00 +05:30
# Maintainer: Erica Marigold <hi@devcomp.xyz>
pkgname=lune
2024-10-08 06:37:01 +01:00
pkgver=0.8.9
2024-04-22 11:44:35 +05:30
pkgrel=2
2023-07-28 12:51:00 +05:30
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 12:30:38 +05:30
depends=(glibc)
2024-04-22 11:44:35 +05:30
makedepends=(cargo cmake)
2023-07-28 12:51:00 +05:30
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 12:51:00 +05:30
prepare() {
2024-04-16 15:15:54 +05:30
cd "lune-${pkgver}"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
2023-07-28 12:51:00 +05:30
}
build() {
2024-04-16 15:15:54 +05:30
cd "lune-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
2023-07-28 12:51:00 +05:30
}
check() {
2024-04-16 15:15:54 +05:30
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 12:51:00 +05:30
}
package() {
2024-04-16 15:15:54 +05:30
cd "lune-${pkgver}"
install -Dm755 -t ${pkgdir}/usr/bin target/release/lune
2023-07-28 12:51:00 +05:30
}