blob: 42340d56f430a4228aeab86fa60117a1b4904b5f (
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
|
# Maintainer: ocm.software <ocm@sap.com>
# Contributor: Christian Cwienk <ccwienk@dr1fter.de>
# Contributor: Gerald Morrison <gerald.gm.morrison@gmail.com>
pkgname=ocm-cli
pkgver=0.19.1
pkgrel=1
pkgdesc='Open Component Model (OCM) Command Line Client'
arch=('x86_64')
url='https://github.com/open-component-model/ocm'
license=('Apache-2.0')
source=("https://github.com/open-component-model/ocm/releases/download/v${pkgver}/ocm-${pkgver}-linux-amd64.tar.gz")
noextract=()
b2sums=('75679d884bef5935da0d028ac0ffd2eeecd50ac26884a80e41f5ad0999ef266a42f8c3798b0115bdf266e30e53d8394e02d2a3f44c62c35939b2d6f0f642399e')
build() {
ocm completion bash > ocm-bash-completion
}
package() {
mkdir -p "$pkgdir/usr/bin"
cp "$srcdir/ocm" "$pkgdir/usr/bin/ocm"
mkdir -p "$pkgdir/usr/share/bash-completion/completions"
cp "$srcdir/ocm-bash-completion" "$pkgdir/usr/share/bash-completion/completions/ocm"
}
|