# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=rippled pkgver=1.0.1 pkgrel=1 pkgdesc="Blockchain daemon implementing the Ripple Consensus Ledger" url="https://ripple.com/" arch="x86_64" license="ISC" makedepends="cmake libressl-dev boost-dev protobuf-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/ripple/$pkgname/archive/$pkgver.tar.gz musl-fixes.patch " builddir="$srcdir/"$pkgname-$pkgver build() { cd "$builddir" mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release make } 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="1ec63bb2615d15e20e5adf28f9598b84c842181a948e9bdb7eb78632a5189f27b7d88539697f7f1b5dea698331928373fc9fc7883751e624bea3ea559a4716bb rippled-1.0.1.tar.gz fb063fa49278a5ffbe3fb3f2c348e83f0b936bc35cab181ef02575f4a3a2ad08997dad970b101b5d9796706757e29cd1d1546da1b550e875be08d01c7e31ef16 musl-fixes.patch"