mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-10 00:02:41 +02:00
61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=lighthouse
|
|
pkgver=4.5.0
|
|
pkgrel=1
|
|
pkgdesc="Ethereum 2.0 Client"
|
|
url="https://lighthouse.sigmaprime.io/"
|
|
arch="x86_64 aarch64" # limited by upstream
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
clang15-dev
|
|
cmake
|
|
openssl-dev
|
|
protobuf-dev
|
|
zlib-dev
|
|
"
|
|
options="net !check" # disable check as it takes too long
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sigp/lighthouse/archive/v$pkgver/lighthouse-$pkgver.tar.gz"
|
|
|
|
# secfixes:
|
|
# 2.2.0-r0:
|
|
# - CVE-2022-0778
|
|
|
|
export OPENSSL_NO_VENDOR=true
|
|
export RUSTFLAGS="$RUSTFLAGS -L /usr/lib/"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build \
|
|
--release --frozen \
|
|
--package lighthouse \
|
|
--features "portable"
|
|
}
|
|
|
|
check() {
|
|
cargo test \
|
|
--release --frozen \
|
|
--workspace \
|
|
--exclude ef_tests \
|
|
--exclude eth1 \
|
|
--exclude genesis
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 "target/release/lighthouse" "$pkgdir/usr/bin/lighthouse"
|
|
|
|
install -Dm 644 -t "$pkgdir/usr/share/doc/lighthouse" README.md
|
|
}
|
|
|
|
sha512sums="
|
|
aac6e8b1a21e5bcf8bcf21143b402d07ca0c73fb4ca8c8095ca7779eb1725527df07802909b5a75eae95b01c240c08301f675589dea72e813baaf0339fb2b23c lighthouse-4.5.0.tar.gz
|
|
"
|