blob: bed24dcb525c774f7d1abb990c6c1a075961d397 (
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
|
# Maintainer: Oliver Nordbjerg <hi@notbjerg.me>
pkgname=reth
pkgver=v1.1.0
_tag=v1.1.0
pkgrel=1
pkgdesc="A fast implementation of the Ethereum protocol in Rust"
arch=('x86_64')
url="https://github.com/paradigmxyz/reth"
license=('MIT' 'APACHE')
depends=()
makedepends=('git' 'cargo' 'clang')
provides=('reth')
source=("git+https://github.com/paradigmxyz/reth.git#tag=${_tag}")
sha512sums=('SKIP')
prepare() {
cd ${pkgname}
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd ${pkgname}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --bin reth --frozen --profile maxperf --features jemalloc,asm-keccak
}
package() {
cd ${pkgname}
install -Dm755 "target/maxperf/reth" "$pkgdir/usr/bin/reth"
install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE-MIT"
install -Dm644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE-APACHE"
}
|