[arch-commits] Commit in zcash/trunk (PKGBUILD boost-no-mt-suffix.patch)

Nicola Squartini tensor5 at archlinux.org
Sat Jun 3 13:21:44 UTC 2017


    Date: Saturday, June 3, 2017 @ 13:21:43
  Author: tensor5
Revision: 233740

upgpkg: zcash 1.0.9-1

Modified:
  zcash/trunk/PKGBUILD
  zcash/trunk/boost-no-mt-suffix.patch

--------------------------+
 PKGBUILD                 |   38 ++++++++++++++++++++------------------
 boost-no-mt-suffix.patch |    2 +-
 2 files changed, 21 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-03 13:20:45 UTC (rev 233739)
+++ PKGBUILD	2017-06-03 13:21:43 UTC (rev 233740)
@@ -2,28 +2,33 @@
 # Maintainer: Nicola Squartini <tensor5 at gmail.com>
 
 pkgname=zcash
-pkgver=1.0.8_1
-pkgrel=3
+pkgver=1.0.9
+_commit=a410f124b24f1ebd763015492b029af09b1872a9
+pkgrel=1
 pkgdesc='Permissionless financial system employing zero-knowledge security'
 arch=('x86_64')
 url='https://z.cash/'
 license=('MIT')
 depends=('boost-libs' 'libevent' 'miniupnpc' 'zeromq')
-makedepends=('boost' 'cargo' 'wget')
+makedepends=('boost' 'cargo' 'cmake' 'git' 'python' 'wget')
 checkdepends=('python' 'python2' 'python2-pyzmq')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/zcash/zcash/archive/v1.0.8-1.tar.gz"
+source=("git+https://github.com/zcash/zcash.git#commit=${_commit}"
         "boost-no-mt-suffix.patch"
         "use-system-libraries.patch"
         "use-system-rust.patch")
-sha256sums=('d0210c93b7baddf55274ba7a3372dbe195ca5d2429e54d36289b97354bb83065'
-            'c318e12a9d48a50cf254d2a58c24dd0cbbf1dc969e3afeecadd0756425ea5b07'
+sha256sums=('SKIP'
+            'a2ac906ac99757adaa7d5eb7e68d2a64c3d628e71c03264c31edcbb500990569'
             'ef8ab26635bb2608f03ddf991da3581060670161938171fa2e413758fa4bad3f'
             '065cd418ca7be72018c7fdada3012872bd079a254a95560312514594381b8028')
 
 prepare() {
-    # cd ${pkgname}-${pkgver}
-    cd ${pkgname}-1.0.8-1
+    cd ${pkgname}
 
+    # Set gitattributes on src/clientversion.cpp
+    mkdir ../${pkgname}-${pkgver}
+    git archive ${_commit} | tar -xC ../${pkgname}-${pkgver}
+    cd ../${pkgname}-${pkgver}
+
     patch -Np1 -i ../boost-no-mt-suffix.patch
     patch -Np1 -i ../use-system-libraries.patch
     patch -Np1 -i ../use-system-rust.patch
@@ -30,11 +35,10 @@
 }
 
 build() {
-    # cd ${pkgname}-${pkgver}
-    cd ${pkgname}-1.0.8-1
+    cd ${pkgname}-${pkgver}
 
     cd depends
-    libs=('bdb' 'googletest' 'googlemock' 'librustzcash' 'libsnark')
+    libs=('bdb' 'googletest' 'googlemock' 'librustzcash' 'libsnark' 'proton')
     for lib in "${libs[@]}"; do
         make ${lib}
     done
@@ -45,7 +49,7 @@
     cd ..
 
     CPPFLAGS="${CPPFLAGS} -I$PWD/depends/x86_64-unknown-linux-gnu/include"
-    LDFLAGS="${LDFLAGS} -L${PWD}/depends/x86_64-unknown-linux-gnu/lib"
+    LDFLAGS="${LDFLAGS} -L${PWD}/depends/x86_64-unknown-linux-gnu/lib -L${PWD}/depends/x86_64-unknown-linux-gnu/lib64"
 
     ./autogen.sh
     ./configure --prefix=/usr
@@ -53,19 +57,17 @@
 }
 
 check() {
-    # cd ${pkgname}-${pkgver}
-    cd ${pkgname}-1.0.8-1
+    cd ${pkgname}-${pkgver}
 
     ./qa/zcash/full-test-suite.sh
 
     # Run the RPC tests
-    ./zcutil/fetch-params.sh
-    ./qa/pull-tester/rpc-tests.sh
+    # ./zcutil/fetch-params.sh
+    # ./qa/pull-tester/rpc-tests.sh
 }
 
 package() {
-    # cd ${pkgname}-${pkgver}
-    cd ${pkgname}-1.0.8-1
+    cd ${pkgname}-${pkgver}
 
     make DESTDIR="${pkgdir}" install
 

Modified: boost-no-mt-suffix.patch
===================================================================
--- boost-no-mt-suffix.patch	2017-06-03 13:20:45 UTC (rev 233739)
+++ boost-no-mt-suffix.patch	2017-06-03 13:21:43 UTC (rev 233740)
@@ -1,6 +1,6 @@
 --- a/configure.ac
 +++ b/configure.ac
-@@ -776,7 +776,7 @@
+@@ -799,7 +799,7 @@
    RUST_LIBS="-lrustzcash"
  fi
  



More information about the arch-commits mailing list