1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/solidity/APKBUILD
2021-07-23 02:55:41 -06:00

38 lines
1 KiB
Text

# 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 !riscv64" # 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"