blob: 9d049789e3580ca9b2c863325100b3adc1320b3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Max Harmathy <harmathy@alumni.tum.de>
pkgname=openstack_cli
pkgver=0.9.2
pkgrel=1
pkgdesc="CLI for the OpenStack written in Rust"
arch=('x86_64')
url="https://github.com/gtema/openstack"
license=('Apache-2.0')
depends=()
makedepends=('cargo')
options=('!lto')
source=("git+$url.git#tag=$pkgname-v$pkgver")
sha256sums=('2c6cf616a8858734d07a42b3835cb8454a89d9e0b6a60089c99d7e6c9b104db6')
build() {
cd openstack
export CARGO_HOME="$srcdir/cargo-home"
cargo build --release --bin osc
}
package() {
cd openstack
install -Dm755 -t "$pkgdir/usr/bin" target/release/osc
# bash completion
install -dm 755 "$pkgdir/usr/share/bash-completion/completions"
target/release/osc completion bash > "$pkgdir/usr/share/bash-completion/completions/osc"
# fish completion
install -dm 755 "$pkgdir/usr/share/fish/completions/"
target/release/osc completion fish > "$pkgdir/usr/share/fish/completions/osc.fish"
# zsh completion
install -dm 755 "$pkgdir/usr/share/zsh/site-functions"
target/release/osc completion zsh > "$pkgdir/usr/share/zsh/site-functions/_osc"
}
|