aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rippled/APKBUILD
blob: a6ede460fe23dc7e41f36b99c2ab370f4cc6a16f (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.70.1
pkgrel=0
pkgdesc="Blockchain daemon implementing the Ripple Consensus Ledger"
url="https://ripple.com/"
arch="all"
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="783e5abc1d8f1d0fa5ea4abbc9ab1211270a52829fa88aa8d2fdd68c045188186ab732c73326bd2a9ed216a5b23480c5dc0799df61f1df5a3475fe53f2da455a  rippled-0.70.1.tar.gz
a26b01f8bf541471f96f3865b99923b267611ece093f8cbc4f35f87002c403b6e558e5ac15cc7599e9a5c1486f3070a4f61a880a2a3b874fc2dab5d8a6d8e82e  musl-fixes.patch"