# Contributor: Nicolas Lorin # Maintainer: MichaƂ Adamski pkgname=electrs pkgver=0.9.10 pkgrel=1 pkgdesc="Efficient re-implementation of Electrum Server in Rust" url="https://github.com/romanz/electrs" license="MIT" arch="all !s390x !riscv64" # limited by rust/cargo makedepends="cargo rocksdb-dev<7.10 clang15-libclang cargo-auditable" source="https://github.com/romanz/electrs/archive/v$pkgver/electrs-$pkgver.tar.gz 10-rocksdb.patch 11-rocksdb-locked.patch 12-db.rs.patch " build() { ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo auditable build --all --features "metrics_process" --release --locked } check() { cargo test --all --release --locked } package() { install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin } sha512sums=" eceb02800f678873beb551c50b578aed22e5db57fc023d5feeb4a0aa706dd5618d42bf0cb9ca13e2eb1699244b166c464dd24a14a81fe2e5ed69fde331273c30 electrs-0.9.10.tar.gz 485af61ccc59e987b1ce024ea02ef3917bb31a4e2cbd2bc55fe70042a1331dc5d6a884eff021db0106e9d900ac46755e71381e77ecdc3a896189597fb04b060f 10-rocksdb.patch 6509c7492bd577c96f17a61ed97422f5928ec8d0b3d317ded8f8331d45dd735152df9c4125f99ceda001484089f39e90748fa5c899198109139ebf3d4294aead 11-rocksdb-locked.patch 255f917bd0ba8fb7377676a25222528f6c6ebbfa114d3ae1fbfaafd6a68c2c849865a3eab8ff029bb7877924aa2a95dba0d39ebbd4936b6af44e990db467cc58 12-db.rs.patch "