From ff628935b494da2041baba0db0251c77ff658b3d Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 23 Jul 2023 21:47:06 +0530 Subject: [PATCH] feat(packaging_aur)!: experimental usage of `just` instead of direct commands --- package/aur/lune-git.PKGBUILD | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package/aur/lune-git.PKGBUILD b/package/aur/lune-git.PKGBUILD index 55c429c..dc745cc 100644 --- a/package/aur/lune-git.PKGBUILD +++ b/package/aur/lune-git.PKGBUILD @@ -7,7 +7,7 @@ pkgdesc="GIT - A standalone Luau script runtime" arch=('any') url="https://github.com/filiptibell/lune" license=('MPL') -makedepends=('rust') +makedepends=('just' 'rust') provides=('lune') conflicts=('lune') source=("git+$url.git") @@ -24,20 +24,21 @@ pkgver() { } build() { - cd "$srcdir/lune" + cd "$srcdir/lune" git checkout $pkgver - cargo build --release + just build } check() { - cd "$srcdir/lune" - cargo test -- --test-threads 1 + cd "$srcdir/lune" + + just test } package() { - cd "$srcdir/lune" + cd "$srcdir/lune" mkdir -p "$pkgdir/usr/bin" - mv ./target/release/lune "$pkgdir/usr/bin" + mv ./target/release/lune "$pkgdir/usr/bin" }