blob: c9384283c0d23096e1b9037f5f2c252e9d3c2403 (
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
|
# Contributor: taotieren <admin@taotieren.com>
pkgname=chaosblade-bin
pkgver=1.7.4
pkgrel=1
pkgdesc="Chaosblade: An Easy to Use and Powerful Chaos Engineering Toolkit"
arch=(x86_64)
url="https://github.com/chaosblade-io/chaosblade"
license=('Apache-2.0')
provides=(${pkgname%-bin})
conflicts=(${pkgname%-bin})
#replaces=(${pkgname})
depends=('go' 'docker')
makedepends=('libarchive')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname%-bin}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-linux-amd64.tar.gz")
sha256sums=('bab6a1def7b81c0decc4038a6aac5fce2cbc86322a35db283b73b5531562fd7c')
noextract=(${pkgname%-bin}-${pkgver}.tar.gz)
package() {
install -dm0755 "${pkgdir}/usr/share/${pkgname%-bin}/"
bsdtar xf "${srcdir}/${pkgname%-bin}-${pkgver}.tar.gz" --strip-components=1 -C "${pkgdir}/usr/share/${pkgname%-bin}"
install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/blade" <<EOF
#!/bin/sh
/usr/share/${pkgname%-bin}/blade "\$@"
EOF
}
|