mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-11 08:41:38 +02:00
51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
pkgname=cargo-shuttle
|
||
pkgver=0.47.0
|
||
pkgrel=0
|
||
pkgdesc="Cargo command for the Shuttle platform"
|
||
url="https://github.com/shuttle-hq/shuttle"
|
||
license="Apache-2.0"
|
||
# s390x, ppc64le, riscv64: blocked by ring crate
|
||
# loongarch64: blocked by libc crate
|
||
arch="all !s390x !ppc64le !riscv64 !loongarch64"
|
||
makedepends="cargo cargo-auditable"
|
||
subpackages="
|
||
$pkgname-doc
|
||
$pkgname-bash-completion
|
||
$pkgname-fish-completion
|
||
$pkgname-zsh-completion
|
||
"
|
||
source="https://github.com/shuttle-hq/shuttle/archive/v$pkgver/shuttle-$pkgver.tar.gz"
|
||
builddir="$srcdir/shuttle-$pkgver"
|
||
# tests require git/submodules to be initialized
|
||
options="!check"
|
||
|
||
prepare() {
|
||
default_prepare
|
||
cargo fetch --locked
|
||
}
|
||
|
||
build() {
|
||
cargo auditable build -p "$pkgname" --release --frozen
|
||
mkdir -p completions/
|
||
local compgen="target/release/$pkgname generate shell"
|
||
$compgen bash >"completions/$pkgname.bash"
|
||
$compgen fish >"completions/$pkgname.fish"
|
||
$compgen zsh >"completions/_$pkgname"
|
||
mkdir -p man/
|
||
"target/release/$pkgname" generate manpage > "man/$pkgname.1"
|
||
}
|
||
|
||
package() {
|
||
install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
|
||
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
|
||
install -Dm644 "completions/$pkgname.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
|
||
install -Dm644 "completions/$pkgname.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d"
|
||
install -Dm644 "completions/_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions"
|
||
install -Dm 644 "man/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
|
||
}
|
||
|
||
sha512sums="
|
||
f20ed330a5ff0c5eee2df2ed328e37e3bf6f254b054734c48e0d4138f30d047fe70a2445d5776f946e3e0a55f92d3e37eb63b356f82ddfdd0ea9d3f3be4c0b93 shuttle-0.47.0.tar.gz
|
||
"
|