blob: 7f8b2f0d4b1ce3ff0a56a91a9231de1bf2772e4f (
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
|
# Maintainer: mario.valderrama <mv-aur@ransomware.download>
# Maintainer: matthias.lisin <ml-aur@ransomware.download>
# Contributor: Jakob Englisch <jakob.englisch[at]gmail[dot]com>
pkgname=ionosctl-bin
pkgver=6.7.8
pkgrel=1
pkgdesc='IONOS Cloud CLI'
url='https://github.com/ionos-cloud/ionosctl'
arch=('aarch64' 'i686' 'x86_64')
license=('Apache-2.0')
source_aarch64=("$url/releases/download/v$pkgver/ionosctl-$pkgver-linux-arm64.tar.gz")
source_i686=("$url/releases/download/v$pkgver/ionosctl-$pkgver-linux-386.tar.gz")
source_x86_64=("$url/releases/download/v$pkgver/ionosctl-$pkgver-linux-amd64.tar.gz")
sha256sums_aarch64=('66319492538d1f8c726ebcf7c78c35c241baa16e2f8905c8313f143813e27775')
sha256sums_i686=('9bb8a924bf9f0923ef9def12756af22ffbfe3c81c97ba48690d140bcaf244e65')
sha256sums_x86_64=('bc0621e42506b8367986bed97f4f6d19fcc9b5c35cfcdafdc9c1a86a1221a22a')
build() {
for i in bash zsh fish; do
./ionosctl completion "$i" >completion."$i"
done
# -f to avoid prompt if target-dir exists
./ionosctl man -f --skip-compression --target-dir "$srcdir"/man1
}
package() {
install -Dm755 ionosctl -t "$pkgdir"/usr/bin
install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/ionosctl
install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_ionosctl
install -Dm644 completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/ionosctl.fish
install -dm755 "$pkgdir"/usr/share/doc/ionosctl "$pkgdir"/usr/share/man/man1
cp -a docs -T "$pkgdir"/usr/share/doc/ionosctl
cp -rvfT "$srcdir"/man1 "$pkgdir"/usr/share/man/man1
}
|