blob: 9381cd6a621ee72f0108ad3b6791fcb6ad2524f8 (
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
|
# Maintainer: Ranadeep B < mail at rnbguy dot at >
_orgname=informalsystems
_basename=hermes
_pkgname=${_basename}-relayer
pkgname=${_pkgname}-bin
pkgver=1.10.5
pkgrel=1
pkgdesc="Hermes IBC Relayer"
arch=('x86_64')
url="https://${_basename}.informal.systems/"
license=('Apache')
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("https://raw.githubusercontent.com/${_orgname}/${_basename}/v${pkgver}/LICENSE")
source_x86_64=("https://github.com/${_orgname}/${_basename}/releases/download/v${pkgver}/${_basename}-v${pkgver}-${arch}-unknown-linux-gnu.tar.gz")
sha256sums=('1816dfba29b8182ddffbc675e228906b2acaa338fcaada5e330065e650092689')
sha256sums_x86_64=('16de208e934142dd0c425c9e59185bc867e319c521bf418d07064b83b1d23c7b')
package() {
install -Dt "${pkgdir}/usr/local/bin" "${_basename}"
# Generate completion files.
mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
"${pkgdir}/usr/local/bin/${_basename}" completions --shell bash > "${pkgdir}/usr/share/bash-completion/completions/${_basename}"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d"
"${pkgdir}/usr/local/bin/${_basename}" completions --shell fish > "${pkgdir}/usr/share/fish/vendor_completions.d/${_basename}.fish"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
"${pkgdir}/usr/local/bin/${_basename}" completions --shell zsh > "${pkgdir}/usr/share/zsh/site-functions/${_basename}"
install -m644 -Dt "${pkgdir}/usr/share/licenses/${_pkgname}" LICENSE
}
|