blob: 27d6a24215f6850fc163bff12bd104df2fe7d3a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Maintainer: Ulrich Schreiner <ulrich.schreiner@gmail.com>
pkgname=metalctl-bin
pkgver=0.7.10
pkgrel=1
pkgdesc='A command line tool for metal-stack services'
url='https://github.com/metal-stack/metalctl'
license=('MIT')
arch=('x86_64')
provides=('metalctl')
source=("https://github.com/metal-stack/metalctl/releases/download/v$pkgver/metalctl-linux-amd64")
md5sums=('9a2af0f99a36c0fa303924f45a9cffee')
package() {
install -Dm 755 "$srcdir/metalctl-linux-amd64" "$pkgdir/usr/bin/metalctl"
# Populate bash, zsh completions
install -dm 755 "$pkgdir/usr/share/bash-completion/completions"
install -dm 755 "$pkgdir/usr/share/zsh/site-functions"
"$pkgdir/usr/bin/metalctl" completion > "$pkgdir/usr/share/bash-completion/completions/metalctl"
"$pkgdir/usr/bin/metalctl" zsh-completion > "$pkgdir/usr/share/zsh/site-functions/_metalctl"
}
|