summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30296adf08e8fa2f836284b37230d2cea5cfb6ec (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
47
48
# This is the PKGBUILD for avalanchego, the go client for the avalanche blockchain

# Maintainer: holisticode <holistic.computing@gmail.com> 
pkgname=avalanchego-bin
pkgver="$(curl --silent "https://api.github.com/repos/ava-labs/avalanchego/releases/latest" | grep tag_name | cut -d\" -f4)"
pkgrel=1
epoch=
pkgdesc="The avalanchego binary"
arch=('x86_64')
url="https://avax.network"
license=('BSD 3-Clause License')
groups=()
depends=('git' 'go' 'gcc')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
md5sums=("SKIP" "SKIP")
noextract=()
validpgpkeys=('5395BDA1129CAC3E74699D07D93080B0C0D5FE8B')


source=("https://github.com/ava-labs/avalanchego/releases/download/${pkgver}/avalanchego-linux-amd64-${pkgver}.tar.gz.sig" 
"https://github.com/ava-labs/avalanchego/releases/download/${pkgver}/avalanchego-linux-amd64-${pkgver}.tar.gz")

build() {
  cd "$srcdir"
  tar -zxvf avalanchego-linux-amd64-${pkgver}.tar.gz
}

check() {
  cd "$srcdir/avalanchego-${pkgver}"
  [[ -f avalanchego ]]
}

package() {
  cd "$srcdir/avalanchego-${pkgver}"

  install -d "${pkgdir}/usr/local/lib/avalanchego"
  install -d "${pkgdir}/usr/local/lib/avalanchego/plugins"
  install -Dm755 avalanchego ${pkgdir}/usr/local/bin/avalanchego
}