summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 058df9d801e1740d30799aa1b1b7d27cb5d0a164 (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
# Maintainer: Nicola Squartini <tensor5@gmail.com>

pkgname=openethereum
pkgver=3.3.5
_commit=6c2d392d867b058ff867c4373e40850ca3f96969
pkgrel=2
pkgdesc='Fast and feature-rich multi-network Ethereum client'
arch=('x86_64')
url='https://parity.io/ethereum'
license=('GPL3')
depends=('gcc-libs')
makedepends=('clang' 'cmake' 'git' 'rust')
provides=('parity' 'parity-ethereum')
conflicts=('parity' 'parity-ethereum')
replaces=('parity' 'parity-ethereum')
backup=('etc/openethereum/config.toml')
options=('!lto')
source=("git+https://github.com/openethereum/openethereum.git#commit=${_commit}"
        'config.toml'
        'openethereum-system.service'
        'openethereum-user.service')
sha256sums=('SKIP'
            '03f0e3a001927cdd25cf12956e8e3a13bd55bad937a9f2509ccbc1fc58f10899'
            'dca7c5e537d29c27f83ddbe4483cbadaff7835afc14ce0d11872fbfb03f23298'
            '4bbad4dc416759013e91edcb3acdc9a1c656f0b47e2c6c8fa9a0e3a354846a0b')

build() {
    cd ${pkgname}

    cargo build --release --features final
    cargo build --release -p evmbin
    cargo build --release -p ethstore-cli
    cargo build --release -p ethkey-cli
}

package() {
    cd ${pkgname}

    install -Dm755 -t "${pkgdir}"/usr/bin \
        target/release/{ethstore,openethereum,openethereum-evm}
    install -Dm755 target/release/ethkey "${pkgdir}"/usr/bin/openethereum-ethkey
    for type in system user; do
        install -Dm644 ../openethereum-${type}.service \
            "${pkgdir}/usr/lib/systemd/${type}/openethereum.service"
    done
    install -Dm644 -t "${pkgdir}/etc/openethereum" ../config.toml
}