[arch-commits] Commit in solidity/trunk (PKGBUILD)

Nicola Squartini tensor5 at archlinux.org
Fri May 5 10:52:35 UTC 2017


    Date: Friday, May 5, 2017 @ 10:52:34
  Author: tensor5
Revision: 227131

upgpkg: solidity 0.4.11-1

Modified:
  solidity/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-05 10:25:55 UTC (rev 227130)
+++ PKGBUILD	2017-05-05 10:52:34 UTC (rev 227131)
@@ -2,7 +2,8 @@
 # Maintainer: Nicola Squartini <tensor5 at gmail.com>
 
 pkgname=solidity
-pkgver=0.4.10
+pkgver=0.4.11
+_commit=68ef5810593e7c8092ed41d5f474dd43141624eb
 pkgrel=1
 pkgdesc='Contract-Oriented Programming Language'
 arch=('i686' 'x86_64')
@@ -9,18 +10,22 @@
 url='https://github.com/ethereum/solidity'
 license=('GPL3')
 depends=('boost-libs' 'jsoncpp')
-makedepends=('boost' 'cmake')
-source=("${url}/releases/download/v${pkgver}/solidity_${pkgver}.tar.gz")
-sha256sums=('a1103f91d240101a90c9bec5243f2436563d3772c4571a352ea7bc21de8706d1')
+makedepends=('boost' 'cmake' 'git')
+source=("git+https://github.com/ethereum/solidity.git#commit=${_commit}")
+sha256sums=('SKIP')
 
 prepare() {
-    cd solidity_${pkgver}
+    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
 }
 
 build() {
-    cd solidity_${pkgver}
+    cd ${pkgname}
 
     mkdir build
     cd build
@@ -33,7 +38,7 @@
 }
 
 package() {
-    cd solidity_${pkgver}/build
+    cd ${pkgname}/build
 
     make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list