mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 12:19:09 +00:00
feat(packaging_aur)!: experimental usage of just
instead of direct commands
This commit is contained in:
parent
8b50c54140
commit
ff628935b4
1 changed files with 8 additions and 7 deletions
|
@ -7,7 +7,7 @@ pkgdesc="GIT - A standalone Luau script runtime"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/filiptibell/lune"
|
url="https://github.com/filiptibell/lune"
|
||||||
license=('MPL')
|
license=('MPL')
|
||||||
makedepends=('rust')
|
makedepends=('just' 'rust')
|
||||||
provides=('lune')
|
provides=('lune')
|
||||||
conflicts=('lune')
|
conflicts=('lune')
|
||||||
source=("git+$url.git")
|
source=("git+$url.git")
|
||||||
|
@ -24,20 +24,21 @@ pkgver() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/lune"
|
cd "$srcdir/lune"
|
||||||
|
|
||||||
git checkout $pkgver
|
git checkout $pkgver
|
||||||
cargo build --release
|
just build
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$srcdir/lune"
|
cd "$srcdir/lune"
|
||||||
cargo test -- --test-threads 1
|
|
||||||
|
just test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/lune"
|
cd "$srcdir/lune"
|
||||||
mkdir -p "$pkgdir/usr/bin"
|
mkdir -p "$pkgdir/usr/bin"
|
||||||
|
|
||||||
mv ./target/release/lune "$pkgdir/usr/bin"
|
mv ./target/release/lune "$pkgdir/usr/bin"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue