mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-10 04:39:08 +00:00
46 lines
968 B
Text
46 lines
968 B
Text
|
# Maintainer: Erica Marigold <hi@devcomp.xyz>
|
||
|
|
||
|
pkgname=lune-git
|
||
|
pkgver=0.7.5.r0.g4c876cb
|
||
|
pkgrel=1
|
||
|
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)
|
||
|
makedepends=(cargo git)
|
||
|
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
|
||
|
}
|