aboutsummaryrefslogblamecommitdiffstats
path: root/testing/solidity/APKBUILD
blob: c402b183ef6f2d513ec613e084218074c2d68bf2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                         
        

                                                             
                                                                   

                          
                                 
                                                                                              











                                                                            
                               












                                                                                                                                                                     
# Contributor: Trevis Schiffer <nikolaibitinit@gmail.com>
# Maintainer: Trevis Schiffer <nikolaibitinit@gmail.com>
pkgname=solidity
pkgver=0.5.10
pkgrel=3
pkgdesc="The Solidity Contract-Oriented Programming Language"
url="https://github.com/ethereum/solidity"
arch="all !s390x !mips !mips64" # No support for big-endian systems
license="GPL-3.0-or-later"
depends="libgcc"
makedepends="boost-dev cmake git"
source="$pkgname-$pkgver.tar.gz::https://github.com/ethereum/$pkgname/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	mkdir -p build
	echo -n "5a6ea5b19793f61c7703d4abe587b2bf40decc31" > 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="24d23d5bf74b992a035a2dafd09e3150ebe1522624fd2feecca4f128897d57313546aa17cb5ecabea655ebe4fa9a3bee279bb1697191b4c93f2835850e10a9d0  solidity-0.5.10.tar.gz"