blob: 2d5a06d9709bdf5c049797a62b48b275757987ec (
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
|
# Maintainer: max-k <max-kATpostDOTcom>
pkgname=heketi-client
_pname=${pkgname%%-client}
_shortname=${_pname}-cli
pkgver=10.2.0
pkgrel=1
pkgdesc="RESTful based volume management framework for GlusterFS (client)"
arch=('x86_64')
url="https://github.com/heketi/heketi"
license=('APACHE' 'GPL2')
depends=('glibc')
source=("https://github.com/$_pname/$_pname/releases/download/v$pkgver/$pkgname-v$pkgver.linux.amd64.tar.gz")
sha256sums=('73c411488f87b7aeab5d3ab4e1344d9baeffda6020b700272f192ab2998f00b6')
build() {
echo > /dev/null
}
package() {
cd "$srcdir"/"$pkgname" || exit 1
install -dm755 "$pkgdir"/usr/{bin,share}
install -dm755 "$pkgdir"/usr/share/"$pkgname"/{kubernetes,openshift}
install -dm755 "$pkgdir"/usr/share/"$pkgname"/openshift/templates
install -m755 bin/"$_shortname" "$pkgdir"/usr/bin/"$_shortname"
for target in kubernetes openshift; do
[[ "$target" == "openshift" ]] && tpl="templates/"
install -m644 share/"$_pname"/"$target"/"$tpl"* \
"$pkgdir"/usr/share/"$pkgname"/"$target"/"$tpl"
done
}
|