mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-05-04 10:03:48 +01:00
feat(packaging_aur): lune-git
PKGBUILD
This commit is contained in:
parent
4c876cb809
commit
15ad9e194c
1 changed files with 43 additions and 0 deletions
43
package/aur/lune-git.PKGBUILD
Normal file
43
package/aur/lune-git.PKGBUILD
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Maintainer: Erica Marigold <hi@devcomp.xyz>
|
||||
|
||||
pkgname=lune-git
|
||||
pkgver=0.7.5
|
||||
pkgrel=1
|
||||
pkgdesc="GIT - A standalone Luau script runtime"
|
||||
arch=('any')
|
||||
url="https://github.com/filiptibell/lune"
|
||||
license=('MPL')
|
||||
makedepends=('rust')
|
||||
provides=('lune')
|
||||
conflicts=('lune')
|
||||
source=("git+$url.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/lune"
|
||||
git submodule update --init
|
||||
}
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/lune"
|
||||
git rev-parse v$pkgver
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/lune"
|
||||
|
||||
git checkout $pkgver
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/lune"
|
||||
cargo test -- --test-threads 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/lune"
|
||||
mkdir -p "$pkgdir/usr/bin"
|
||||
|
||||
mv ./target/release/lune "$pkgdir/usr/bin"
|
||||
}
|
Loading…
Add table
Reference in a new issue