aboutsummaryrefslogtreecommitdiffstats
path: root/community/rippled/APKBUILD
blob: 35a167b0631f5d10162aea4981e3b482ea2b4aa2 (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
39
40
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=rippled
pkgver=1.1.2
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
	8fc6a8175b266adaf02b2662e174869e3a55b8cf.patch::https://github.com/ripple/rippled/commit/8fc6a8175b266adaf02b2662e174869e3a55b8cf.patch
	fix-tests.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="78fc36e442d1fa6b9709d8de5ddcaf4a0e44867e50e27f3fa7556f39b777f415a34c61ea9247a225d48c3b2bbd971d03617a92cc614c833070ad75692369b59f  rippled-1.1.2.tar.gz
b1882e45d79a0a375f8bdfa5b2154cf027a7af23778b85796c8d89f08fc64d39ce231630950f646e5a0e88a59c634bd538b042f33141f90ef809cc9d76011a98  8fc6a8175b266adaf02b2662e174869e3a55b8cf.patch
cc038e87adf97e4dcd5ea60ff6f45fc988177358b02c116134b65b08dd69a0079f38b56e0dc11c4faaeadc2d707ba5eeeb1a5869dbe95a0cf616599926566d58  fix-tests.patch"