mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-08 07:11:45 +02:00
62 lines
1.7 KiB
Plaintext
62 lines
1.7 KiB
Plaintext
# Contributor: Kaspar Schleiser <kaspar@schleiser.de>
|
|
# Maintainer: Kaspar Schleiser <kaspar@schleiser.de>
|
|
pkgname=laze
|
|
pkgver=0.1.21
|
|
pkgrel=0
|
|
pkgdesc="laze is a build system based on Ninja, aiming to be the next goto-alternative to make"
|
|
url="https://laze-build.org"
|
|
# loongarch64: blocked by libc crate
|
|
arch="all !loongarch64"
|
|
license="Apache-2.0"
|
|
depends="ninja"
|
|
makedepends="cargo cargo-auditable"
|
|
checkdepends="xz"
|
|
subpackages="$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/kaspar030/laze/archive/$pkgver/laze-$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "target/release/laze" "$pkgdir/usr/bin/laze"
|
|
|
|
# create man pages
|
|
mkdir -p tmp/man tmp/completions
|
|
target/release/laze manpage tmp/man
|
|
|
|
install -Dm644 "tmp/man/laze.1" "$pkgdir/usr/share/man/man1/laze.1"
|
|
install -Dm644 "tmp/man/laze-build.1" "$pkgdir/usr/share/man/man1/laze-build.1"
|
|
install -Dm644 "tmp/man/laze-clean.1" "$pkgdir/usr/share/man/man1/laze-clean.1"
|
|
|
|
# create completions
|
|
for shell in bash zsh fish; do
|
|
target/release/laze -Ctmp/completions completion --generate $shell \
|
|
> tmp/completions/$shell
|
|
done
|
|
|
|
install -Dm644 "tmp/completions/bash" \
|
|
"$pkgdir/usr/share/bash-completion/completions/laze"
|
|
install -Dm644 "tmp/completions/fish" \
|
|
"$pkgdir/usr/share/fish/vendor_completions.d/laze.fish"
|
|
install -Dm644 "tmp/completions/zsh" \
|
|
"$pkgdir/usr/share/zsh/site-functions/_laze"
|
|
}
|
|
|
|
sha512sums="
|
|
16026189437f59517e85e64843516d6cdde76f826901c09b6c990a4ae48bf85bd6eb24da1b867b1aa662c74e0ef3e55b8608ee6406abef02f980c7ad3367858e laze-0.1.21.tar.gz
|
|
"
|