aboutsummaryrefslogtreecommitdiffstats
path: root/community/rippled/APKBUILD
blob: 49697be3c313662abac846b75e35402746760228 (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.2.4
pkgrel=0
pkgdesc="Blockchain daemon implementing the Ripple Consensus Ledger"
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/$pkgname/archive/$pkgver.tar.gz
	boost-1.69.patch
	"
builddir="$srcdir/"$pkgname-$pkgver

build() {
	cd "$builddir"
	mkdir build && cd build
	cmake .. -Dstatic=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
	cmake --build .
}

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="35c399a676a68db13f7c34beacbaa1f132b247836ac46ba70f52d0dcd5c3f4311a1478045161bcd28aa83d228975fbc5234bc730731a0697e9bb6d647ae119ee  rippled-1.2.4.tar.gz
ded17d689014ab69700896fcae5002b5229a34e2ef5810af2ee122c546843fc7ceb2963d70d85169a334281e081f6da3a236ef89354d1f6c639beaefdfc8b88e  boost-1.69.patch"