summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1a730f81a3a24b31d32b16fce64bce78adbff54 (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
# Maintainer: Birdman <bn0010100@gmail.com>
# Contributor: Dario Ostuni <dario.ostuni@gmail.com>
# Contributor: Misha <mishakmak@gmail.com>

pkgname=go-algorand
pkgver=4.0.2
pkgrel=1
pkgdesc="Implementation of the Algorand protocol and node software"
arch=('x86_64')
url="https://www.algorand.com"
license=('AGPL3')
backup=('var/lib/algorand/genesis.json' 'var/lib/algorand/system.json')
depends=("systemd")
provides=("go-algorand")
conflicts=("go-algorand")
install=go-algorand.install
source=("https://github.com/algorand/go-algorand/releases/download/v${pkgver}-stable/algorand-${pkgver}-1.x86_64.rpm")
sha384sums=('100ac59fc2e6b9efebae4a6fa543ed742672bec732feaeed360a7cf16d2a707b1d09a93bf8433a019fc5d9e6cc7b19f3')

package() {
  cd "${srcdir}"

  install -Dm755 usr/bin/* -t "${pkgdir}/usr/bin/"

  install -d "${pkgdir}/var/lib/algorand"
  cp -r var/lib/algorand/ "${pkgdir}/var/lib/"

  install -Dm644 lib/systemd/system/* -t "${pkgdir}/usr/lib/systemd/system/"
}