aboutsummaryrefslogtreecommitdiffstats
path: root/testing/solidity/APKBUILD
blob: 910801778fb8b45f11f175c4bc31b0436362911b (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
# Contributor: Trevis Schiffer <nikolaibitinit@gmail.com>
# Maintainer: Trevis Schiffer <nikolaibitinit@gmail.com>
pkgname=solidity
pkgver=0.7.5
pkgrel=2
_commit=51b20bc0872bb9049e205d5547023cb06d1df9db
pkgdesc="The Solidity Contract-Oriented Programming Language"
url="https://github.com/ethereum/solidity"
arch="all !s390x !mips !mips64 !x86 !armv7 !armhf" # No support for big-endian systems and 32-bits
license="GPL-3.0-or-later"
depends="libgcc"
makedepends="boost-dev cmake git"
source="$pkgname-$pkgver.tar.gz::https://github.com/ethereum/solidity/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	mkdir -p build
	echo -n $_commit > commit_hash.txt
}

build() {
	cd build
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
	-DBoost_USE_STATIC_LIBS=OFF \
	-DTESTS=ON \
	-DCMAKE_BUILD_TYPE=None
	make
}

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

check() {
	ctest -V
}

sha512sums="4fbe5e3eac0fe534f3a9eda554c2d020fe65537ebcdacea4e113cf8fcfffd6b99bcb94f2d853f9cb0b2b0195ba36b6dbc8be2ce5f7304eccd94d8bf936271f79  solidity-0.7.5.tar.gz"