summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94787a66684bc175306cb4b8f49c9eb009680f34 (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
49
50
51
52
53
54
55
56
57
# Maintainer: Emil Bay <archlinux@tixz.dk>
pkgname=nethermind-ethereum-bin
_pkgname=nethermind
pkgver=1.25.4
_pkgver=1.25.4
_commit=20b10b35
pkgrel=2
pkgdesc='A robust execution client for Ethereum node operators. Binary distribution.'
arch=('x86_64' 'aarch64')
url='https://downloads.nethermind.io/'
license=('LGPL-3.0-only')
depends=('zlib' 'base-devel')
provides=('nethermind' 'nethermind-cli' 'nethermind-launcher' 'Nethermind.Runner')
conflicts=('nethermind' 'nethermind-cli' 'nethermind-launcher' 'Nethermind.Runner')
source_x86_64=(
    "https://github.com/NethermindEth/nethermind/releases/download/${_pkgver}/nethermind-${_pkgver}-${_commit}-linux-x64.zip"
    "https://nethdev.blob.core.windows.net/builds/nethermind-${_pkgver}-${_commit}-linux-x64.zip.asc"
)
source_aarch64=(
    "https://github.com/NethermindEth/nethermind/releases/download/${_pkgver}/nethermind-${_pkgver}-${_commit}-linux-arm64.zip" 
    "https://nethdev.blob.core.windows.net/builds/nethermind-${_pkgver}-${_commit}-linux-arm64.zip.asc"
)
sha256sums_x86_64=('b843bff5bc7199561aec3e3237caf111a0be6fed6ba386bb879e7a4cee2c6d36' 'SKIP')
md5sums_x86_64=('05848eaab4b1b621054ff507e8592d17' 'SKIP')
sha256sums_aarch64=('726c00ef09ef4e890c742d351657d257b9dd70c8cce91e77ec5d47b1bf5b09b2' 'SKIP')
md5sums_aarch64=('26d48b5bc0759cf70f291839bf6ae2a6' 'SKIP')
# Can be acquired with `gpg --receive-keys CB6DA407 34E353C6` (listed at the bottom of https://downloads.nethermind.io/)
validpgpkeys=('6942FB745ECE67D86CDA45704770A0C134E353C6' 'EECCEA1473108E3222D76722D39BE1DDCB6DA407')


package() {
    configs_srcdir="$srcdir/configs"
    plugins_srcdir="$srcdir/plugins"
    data_srcdir="$srcdir/Data"

    # Binaries
    for b in "${provides[@]}"; do
        install -D -m755 --mode=+xr "$srcdir/$b" "$pkgdir/usr/bin/$b"
    done

    # install config recursively
    install -D -m644 "$srcdir/NLog.config" "$pkgdir/etc/nethermind/NLog.config"

    for c in $(find "$configs_srcdir" -type f); do
        install -D -m644 "$c" "$pkgdir/etc/nethermind/configs/${c#$configs_srcdir}"
    done

    # Plugins
    for p in $(find "$plugins_srcdir" -type f); do
        install -D -m644 "$p" "$pkgdir/usr/share/nethermind/plugins/${p#$plugins_srcdir}"
    done

    # Data
    for d in $(find "$data_srcdir" -type f); do
        install -D -m644 "$d" "$pkgdir/usr/share/nethermind/Data/${d#$data_srcdir}"
    done
}