# Maintainer: Dario Ostuni # Contributor: Misha pkgname=algorand-bin pkgver=3.22.0 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=("algorand") conflicts=("algorand") install=algorand-bin.install source=("https://github.com/algorand/go-algorand/releases/download/v${pkgver}-stable/algorand-${pkgver}-1.x86_64.rpm") sha384sums=('0d147eb77959fd0d928433eacec80454428455c383e17c630a6c1cd6fa5ccef7e8c7e476ecd4f31615c512bcc1c94bc4') 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/" }