summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 752ef62f371256d09a0f1b616798c1b82fb6ea11 (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
pkgname=erigon
pkgdesc='Ethereum implementation on the efficiency frontier.'
pkgver=2.61.0
pkgrel=2
epoch=1
url='https://github.com/erigontech/erigon'
arch=('x86_64' 'aarch64')
license=('GPL3')
makedepends=('go')
depends=('glibc')
source=("https://github.com/erigontech/erigon/archive/refs/tags/v2.61.0.tar.gz")
b2sums=('85aa8cbee9d5dc0b46a0bbd0f9d36dac3c465112c1d106ccd4f75ff1171745d9c72301cf334d633a140b52a17cc8cb7b233c42188b0fcfd448d710910ba43565')

build() {
    cd ${pkgname}-${pkgver}

    export CGO_LDFLAGS="$LDFLAGS"
    export GIT_TAG="v${pkgver}"
    make erigon devnet downloader integration rpcdaemon sentry txpool sentinel caplin
}

package() {
    cd ${pkgname}-${pkgver}

    for binary in build/bin/*; do
        filename=${binary##*/}
        if [[ "${filename}" = "erigon" ]]; then
            install -Dm755 "${binary}" "${pkgdir}/usr/bin/${filename}"
        else
            install -Dm755 "${binary}" "${pkgdir}/usr/bin/erigon-${filename}"
        fi
    done
}