navinstall/PKGBUILD
JMARyA 34b35b02bc
All checks were successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
fix dep
2025-04-17 11:36:53 +02:00

40 lines
911 B
Bash

# Maintainer: JMARyA <jmarya@hydrar.de>
pkgname=navinstall
pkgver=2025.04.08_5d23197
pkgrel=1
pkgdesc="navOS Installer"
arch=('x86_64' 'aarch64')
url="https://git.hydrar.de/navos/navinstall"
license=("MIT")
depends=("arch-install-scripts" "git")
optdepends=('sbctl' 'sbsigntools' 'archiso')
makedepends=("rustup" "git")
source=("${pkgname}::git+https://git.hydrar.de/navos/navinstall.git")
sha256sums=("SKIP")
pkgver() {
cd "$srcdir/$pkgname"
echo "$(date +%Y.%m.%d)_$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgname"
rustup default nightly
cargo fetch
}
build() {
cd "$srcdir/$pkgname"
cargo build --release
}
check() {
cd "$srcdir/$pkgname"
cargo test --release
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 "target/release/navinstall" "$pkgdir/usr/bin/navinstall"
install -Dm644 installs/* -t "$pkgdir/usr/share/$pkgname/installs/"
}