aboutsummaryrefslogtreecommitdiffstats
path: root/community/rippled/APKBUILD
blob: 8d165fb45327613ba15485e4d3a9beb68f1bd8fe (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=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"