blob: f023c2efa4a682e9b96fe38f3693c252c5833bc5 (
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
38
39
40
41
42
43
44
45
46
|
# Maintainer: Cédric Connes <cedric.connes@gmail.com>
pkgname=ibmcloud-cli
pkgver=2.29.0
pkgrel=1
pkgdesc="Command line client for IBM Cloud"
arch=('x86_64' 'i686' 'aarch64')
url="https://console.bluemix.net/docs/cli/reference/ibmcloud/all_versions.html"
license=('CUSTOM')
depends=()
provides=('bluemix-cli')
conflicts=('bluemix-cli')
replaces=('bluemix-cli')
source_x86_64=("https://download.clis.cloud.ibm.com/ibm-cloud-cli/${pkgver}/binaries/IBM_Cloud_CLI_${pkgver}_linux_amd64.tgz")
source_i686=("https://download.clis.cloud.ibm.com/ibm-cloud-cli/${pkgver}/binaries/IBM_Cloud_CLI_${pkgver}_linux_386.tgz")
source_aarch64=("https://download.clis.cloud.ibm.com/ibm-cloud-cli/${pkgver}/binaries/IBM_Cloud_CLI_${pkgver}_linux_arm64.tgz")
sha256sums_x86_64=('3a4daae7b7e1b66e611523a6fe08afe9e5b2f200f740cbe798ad9809076e52d1')
sha256sums_i686=('ca82a818ab76f3da3b8dbdb15c5cd35b6385aabf92c83528b323715e5c1c2246')
sha256sums_aarch64=('b1ab58c2f177a22d13821eda6ad784a6351291b48a7bc3410119da741d165d9e')
package() {
cd "${srcdir}/IBM_Cloud_CLI/"
mkdir -p "${pkgdir}/opt/ibmcloud/"
install -D "NOTICE" "${pkgdir}/opt/ibmcloud/bin/NOTICE"
install -D "LICENSE" "${pkgdir}/opt/ibmcloud/bin/LICENSE"
install -D "ibmcloud" "${pkgdir}/opt/ibmcloud/bin/ibmcloud"
install -D "autocomplete/bash_autocomplete" "${pkgdir}/opt/ibmcloud/autocomplete/bash_autocomplete"
install -D "autocomplete/zsh_autocomplete" "${pkgdir}/opt/ibmcloud/autocomplete/zsh_autocomplete"
install -d "${pkgdir}/usr/bin"
ln -sf /opt/ibmcloud/bin/ibmcloud "${pkgdir}/opt/ibmcloud/bin/bluemix"
ln -sf /opt/ibmcloud/bin/ibmcloud "${pkgdir}/opt/ibmcloud/bin/bx"
ln -sf /opt/ibmcloud/bin/ibmcloud "${pkgdir}/usr/bin/bluemix"
ln -sf /opt/ibmcloud/bin/ibmcloud "${pkgdir}/usr/bin/bx"
ln -sf /opt/ibmcloud/bin/ibmcloud "${pkgdir}/usr/bin/ibmcloud"
install -d "${pkgdir}/usr/share/bash-completion/completions"
ln -sf /opt/ibmcloud/autocomplete/bash_autocomplete "${pkgdir}/usr/share/bash-completion/completions/ibmcloud"
chown -R root:root "${pkgdir}/opt/ibmcloud/"
chmod -R 755 "${pkgdir}/opt/ibmcloud/"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|