blob: d114a5387fe3925581342e422887a61b6cc470b6 (
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
|
# Contributor: Trevis Schiffer <nikolaibitinit@gmail.com>
# Maintainer: Trevis Schiffer <nikolaibitinit@gmail.com>
pkgname=solidity
pkgver=0.5.10
pkgrel=2
pkgdesc="The Solidity Contract-Oriented Programming Language"
url="https://github.com/ethereum/solidity"
arch="all !s390x" # 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=Release
make
}
package() {
make DESTDIR="$pkgdir" install -C build
}
check() {
ctest -V
}
sha512sums="24d23d5bf74b992a035a2dafd09e3150ebe1522624fd2feecca4f128897d57313546aa17cb5ecabea655ebe4fa9a3bee279bb1697191b4c93f2835850e10a9d0 solidity-0.5.10.tar.gz"
|