aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rippled/APKBUILD
blob: 87c3577d8615876ac6989eda084d498205b51f63 (plain)
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
38
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=rippled
pkgver=0.80.0
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 doc/rippled-example.cfg "${pkgdir}/etc/$pkgname/rippled.cfg"
	install -D -m644 doc/validators-example.txt "${pkgdir}/etc/$pkgname/validators.txt"
}

sha512sums="e7fd0a990f4933134dd9b15c7802d8ef1e25afad7373415433fe81b6b0ddf03fa15d58cca17691b06722f1121432c942f592fc885f1fefde289350dd2f52362f  rippled-0.80.0.tar.gz
a26b01f8bf541471f96f3865b99923b267611ece093f8cbc4f35f87002c403b6e558e5ac15cc7599e9a5c1486f3070a4f61a880a2a3b874fc2dab5d8a6d8e82e  musl-fixes.patch"