# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=rippled pkgver=1.2.4 pkgrel=1 pkgdesc="Blockchain daemon implementing the Ripple Consensus Ledger" url="https://ripple.com/" arch="x86_64" license="ISC" makedepends="cmake openssl-dev boost-dev protobuf-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/ripple/$pkgname/archive/$pkgver.tar.gz boost-1.69.patch " builddir="$srcdir/"$pkgname-$pkgver build() { cd "$builddir" mkdir build && cd build cmake .. -Dstatic=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release cmake --build . } check() { cd "$builddir" ./build/rippled --unittest } package() { cd "$builddir" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" install -D build/rippled "${pkgdir}/usr/bin/rippled" install -D -m644 cfg/rippled-example.cfg "${pkgdir}/etc/$pkgname/rippled.cfg" install -D -m644 cfg/validators-example.txt "${pkgdir}/etc/$pkgname/validators.txt" } sha512sums="35c399a676a68db13f7c34beacbaa1f132b247836ac46ba70f52d0dcd5c3f4311a1478045161bcd28aa83d228975fbc5234bc730731a0697e9bb6d647ae119ee rippled-1.2.4.tar.gz ded17d689014ab69700896fcae5002b5229a34e2ef5810af2ee122c546843fc7ceb2963d70d85169a334281e081f6da3a236ef89354d1f6c639beaefdfc8b88e boost-1.69.patch"