Date: Tuesday, May 23, 2017 @ 21:08:43 Author: arojas Revision: 229850
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: solidity/repos/community-staging-i686/ solidity/repos/community-staging-i686/PKGBUILD (from rev 229849, solidity/trunk/PKGBUILD) solidity/repos/community-staging-x86_64/ solidity/repos/community-staging-x86_64/PKGBUILD (from rev 229849, solidity/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 47 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 47 ++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) Copied: solidity/repos/community-staging-i686/PKGBUILD (from rev 229849, solidity/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-05-23 21:08:43 UTC (rev 229850) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Nicola Squartini <tens...@gmail.com> + +pkgname=solidity +pkgver=0.4.11 +_commit=68ef5810593e7c8092ed41d5f474dd43141624eb +pkgrel=2 +pkgdesc='Contract-Oriented Programming Language' +arch=('i686' 'x86_64') +url='https://github.com/ethereum/solidity' +license=('GPL3') +depends=('boost-libs' 'jsoncpp') +makedepends=('boost' 'cmake' 'git') +source=("git+https://github.com/ethereum/solidity.git#commit=${_commit}") +sha256sums=('SKIP') + +prepare() { + cd ${pkgname} + + commithash=$(git rev-parse --short=8 HEAD) + echo -n ${commithash} > commit_hash.txt + echo -n > prerelease.txt + + sed -e '/jsoncpp\.cmake/d' -i CMakeLists.txt + + # don't use -Werror, breaks build with GCC 7 + sed -e '/Werror/d' -i cmake/EthCompilerSettings.cmake +} + +build() { + cd ${pkgname} + + mkdir build + cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DTESTS=OFF \ + .. + make +} + +package() { + cd ${pkgname}/build + + make DESTDIR="${pkgdir}" install +} Copied: solidity/repos/community-staging-x86_64/PKGBUILD (from rev 229849, solidity/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-05-23 21:08:43 UTC (rev 229850) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Nicola Squartini <tens...@gmail.com> + +pkgname=solidity +pkgver=0.4.11 +_commit=68ef5810593e7c8092ed41d5f474dd43141624eb +pkgrel=2 +pkgdesc='Contract-Oriented Programming Language' +arch=('i686' 'x86_64') +url='https://github.com/ethereum/solidity' +license=('GPL3') +depends=('boost-libs' 'jsoncpp') +makedepends=('boost' 'cmake' 'git') +source=("git+https://github.com/ethereum/solidity.git#commit=${_commit}") +sha256sums=('SKIP') + +prepare() { + cd ${pkgname} + + commithash=$(git rev-parse --short=8 HEAD) + echo -n ${commithash} > commit_hash.txt + echo -n > prerelease.txt + + sed -e '/jsoncpp\.cmake/d' -i CMakeLists.txt + + # don't use -Werror, breaks build with GCC 7 + sed -e '/Werror/d' -i cmake/EthCompilerSettings.cmake +} + +build() { + cd ${pkgname} + + mkdir build + cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DTESTS=OFF \ + .. + make +} + +package() { + cd ${pkgname}/build + + make DESTDIR="${pkgdir}" install +}