# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=rippled pkgver=1.3.1 pkgrel=4 pkgdesc="Blockchain daemon implementing the Ripple Consensus Ledger" options="!check" # FIXME: 1 failure, rippled testsuite doesn't tell which one it is url="https://ripple.com/" arch="x86_64" license="ISC" makedepends="cmake openssl-dev boost-dev protobuf-dev" subpackages="$pkgname-doc" options="net" source="$pkgname-$pkgver.tar.gz::https://github.com/ripple/rippled/archive/$pkgver.tar.gz boost-1.71.patch disable-failing-test.patch " build() { mkdir build && cd build # Use Release as buildtype for now: its subprojects don't support None either cmake .. -Dstatic=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release cmake --build . } check() { ./build/rippled --unittest --unittest-jobs ${JOBS:-2} } package() { 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="a250be756133897b89557427eb9e298db79c653e1b367ca389043a4edf6d67b82151cd519364365ed355c3ab1cf85236e7703ade695a9207101be9d488eac14b rippled-1.3.1.tar.gz 0eb73f076dda5a754de11973da1754ed597777b42f8e2310cf7ad2c1415c6d69f129bee913b5fab735aec2ce20cf5a5268d905aad7a0a1c256d42d6d0c23e9ce boost-1.71.patch 3ba74a07e3426fa8162160942850ed7c0472d4cdf4cf170317df2d838eec8bb2b74abfc47e40d42d80b9303bcb6c0ebe52d4babee2194db3d608d36b26dadc15 disable-failing-test.patch"