aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bigbang/APKBUILD
blob: 369f03c8df1a1ddd65cb5933a314d2cdb64f4458 (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: MathxH Chen <brainfvck@foxmail.com>
# Maintainer: MathxH Chen <brainfvck@foxmail.com>
pkgname=bigbang
pkgver=0.0.4
pkgrel=2
pkgdesc="The core node of bigbang blockchain network"
url="https://github.com/BigBang-Foundation/BigBang"
# x86, armv7, armhf, ppc64le - PoW Hash algorithm does not support 32-bit or powerpc at present
# s390x, mips64 - tests fail
arch="x86_64 aarch64"
license="MIT"
makedepends="
	cmake
	python3
	boost-dev
	openssl-dev
	readline-dev
	ncurses-dev
	libsodium-dev
	libexecinfo-dev
	leveldb-dev
	snappy-dev
	"
# cmakelists.patch force use dynamic libs.
source="$pkgname-$pkgver.tar.gz::https://github.com/BigBang-Foundation/BigBang/archive/v$pkgver.tar.gz
	cmakelists.patch
	"
builddir="$srcdir/BigBang-$pkgver"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
	  CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
	      -DCMAKE_BUILD_TYPE=None \
	      -DCMAKE_INSTALL_PREFIX=/usr \
	      -DALPINE_LINUX=True \
	      $CMAKE_CROSSOPTS .
	make -C build
}

check() {
	./build/test/test_big
	./build/test/test_ctsdb
}

package() {
	make -C build DESTDIR="$pkgdir" install
}


sha512sums="fdc03a05c4d367823e4fed474be2a7d7ff3455e8859eaa11839e1d195e84a8097f8bf3849b0d048d556fb2dbd624f1013814137183616deb5941dfd4b0159f8f  bigbang-0.0.4.tar.gz
cfc989960f59de959a1d1acefd8abff347c5a9ef3e834a01828ab9ee8c4ba392b4d363aeb667de472b44a16e2ffe25f978b67d0968be85d781f9f9fd0569d41f  cmakelists.patch"