aboutsummaryrefslogblamecommitdiffstats
path: root/testing/lighthouse/APKBUILD
blob: 7188b59377482154779de9eec71c8103fa5f7773 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                
            


                                       
                                            

                                            
                                                     























                                                                                                               
            
                                                                                                                                                         
 
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=lighthouse
pkgver=1.5.2
pkgrel=0
pkgdesc="Ethereum 2.0 Client"
url="https://lighthouse.sigmaprime.io/"
arch="x86_64 aarch64"  # limited by upstream
license="Apache-2.0"
makedepends="cargo cmake openssl-dev protoc"
options="!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"

export OPENSSL_NO_VENDOR=true
export RUSTFLAGS="$RUSTFLAGS -L /usr/lib/"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked \
		--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="
18ed9ad3f8e6c2e2a0fdd132ed7b0b68e5c54f5931ab0289ca5ee74be68c74d2f5e33c8978378bed4ffa0800b9ee3d4db3738f1caefb6d4a6f74d3af6942f3c8  lighthouse-1.5.2.tar.gz
"