aboutsummaryrefslogtreecommitdiffstats
path: root/community/rippled/APKBUILD
blob: 2be18b34c3f965c89e4d09bbd48f325d663e3553 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=rippled
pkgver=1.3.1
pkgrel=3
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"
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
	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"