[arch-commits] Commit in zcash/repos/community-x86_64 (7 files)

Nicola Squartini tensor5 at archlinux.org
Wed Nov 22 15:02:50 UTC 2017


    Date: Wednesday, November 22, 2017 @ 15:02:49
  Author: tensor5
Revision: 268047

archrelease: copy trunk to community-x86_64

Added:
  zcash/repos/community-x86_64/PKGBUILD
    (from rev 268046, zcash/trunk/PKGBUILD)
  zcash/repos/community-x86_64/boost-no-mt-suffix.patch
    (from rev 268046, zcash/trunk/boost-no-mt-suffix.patch)
  zcash/repos/community-x86_64/use-system-rust.patch
    (from rev 268046, zcash/trunk/use-system-rust.patch)
Deleted:
  zcash/repos/community-x86_64/PKGBUILD
  zcash/repos/community-x86_64/boost-no-mt-suffix.patch
  zcash/repos/community-x86_64/use-system-libraries.patch
  zcash/repos/community-x86_64/use-system-rust.patch

----------------------------+
 PKGBUILD                   |  147 +++++++++++++++++++------------------------
 boost-no-mt-suffix.patch   |   22 +++---
 use-system-libraries.patch |   11 ---
 use-system-rust.patch      |   20 ++---
 4 files changed, 88 insertions(+), 112 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-22 15:02:35 UTC (rev 268046)
+++ PKGBUILD	2017-11-22 15:02:49 UTC (rev 268047)
@@ -1,80 +0,0 @@
-# $Id$
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=zcash
-pkgver=1.0.12
-_commit=b86b9feb6c3c1727cc3992da2f95c4a4f09a982b
-pkgrel=2
-pkgdesc='Permissionless financial system employing zero-knowledge security'
-arch=('x86_64')
-url='https://z.cash/'
-license=('MIT')
-depends=('boost-libs' 'libevent' 'zeromq')
-makedepends=('boost' 'cargo' 'cmake' 'git' 'python' 'wget')
-checkdepends=('python' 'python2' 'python2-pyzmq')
-source=("git+https://github.com/zcash/zcash.git#commit=${_commit}"
-        "boost-no-mt-suffix.patch"
-        "use-system-libraries.patch"
-        "use-system-rust.patch")
-sha256sums=('SKIP'
-            '15389fe2741b8641d39b9fc0cd155e919d09e6d9317b79d0f4f1bcefb798766c'
-            'ef8ab26635bb2608f03ddf991da3581060670161938171fa2e413758fa4bad3f'
-            '065cd418ca7be72018c7fdada3012872bd079a254a95560312514594381b8028')
-
-prepare() {
-    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
-}
-
-build() {
-    cd ${pkgname}-${pkgver}
-
-    cd depends
-    libs=('bdb' 'googletest' 'googlemock' 'librustzcash' 'libsnark' 'proton')
-    for lib in "${libs[@]}"; do
-        make ${lib}
-    done
-    for lib in "${libs[@]}"; do
-        tar -xzf built/${CARCH}-unknown-linux-gnu/${lib}/${lib}-*.tar.gz \
-            -C ${CARCH}-unknown-linux-gnu
-    done
-    cd ..
-
-    CPPFLAGS="${CPPFLAGS} -I$PWD/depends/${CARCH}-unknown-linux-gnu/include"
-    LDFLAGS="${LDFLAGS} -L${PWD}/depends/${CARCH}-unknown-linux-gnu/lib -L${PWD}/depends/x86_64-unknown-linux-gnu/lib64"
-
-    ./autogen.sh
-    ./configure --prefix=/usr
-    make
-}
-
-check() {
-    cd ${pkgname}-${pkgver}
-
-    # ./qa/zcash/full-test-suite.sh
-
-    # Run the RPC tests
-    # ./zcutil/fetch-params.sh
-    # ./qa/pull-tester/rpc-tests.sh
-}
-
-package() {
-    cd ${pkgname}-${pkgver}
-
-    make DESTDIR="${pkgdir}" install
-
-    for ext in '-cli' '-tx' 'd'; do
-        install -Dm644 contrib/bitcoin${ext}.bash-completion \
-            "${pkgdir}"/usr/share/bash-completion/completions/zcash${ext}
-    done
-
-    install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
-}

Copied: zcash/repos/community-x86_64/PKGBUILD (from rev 268046, zcash/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-11-22 15:02:49 UTC (rev 268047)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=zcash
+pkgver=1.0.13
+_commit=3ee1d04a8dff26e81aaf17095a0e2472bc70cf36
+pkgrel=1
+pkgdesc='Permissionless financial system employing zero-knowledge security'
+arch=('x86_64')
+url='https://z.cash/'
+license=('MIT')
+depends=('boost-libs' 'libevent' 'zeromq')
+makedepends=('boost' 'cargo' 'cmake' 'git' 'python' 'wget')
+checkdepends=('python' 'python2' 'python2-pyzmq')
+source=("git+https://github.com/zcash/zcash.git#commit=${_commit}"
+        "boost-no-mt-suffix.patch"
+        "use-system-rust.patch")
+sha256sums=('SKIP'
+            'de84cf8c0ee530958300bcd9d92c59f5adb5ccabcf7fbc79ace856b0461d394c'
+            '065cd418ca7be72018c7fdada3012872bd079a254a95560312514594381b8028')
+
+prepare() {
+    cd ${pkgname}
+
+    # Set gitattributes on src/clientversion.cpp
+    git archive --format=tar ${_commit} -- src/clientversion.cpp | tar -xf -
+
+    patch -Np1 -i ../boost-no-mt-suffix.patch
+    patch -Np1 -i ../use-system-rust.patch
+}
+
+build() {
+    cd ${pkgname}
+
+    cd depends
+    make install \
+        native_packages='' \
+        packages='bdb googletest googlemock librustzcash proton'
+    cd ..
+
+    CPPFLAGS="${CPPFLAGS} -I$PWD/depends/${CARCH}-unknown-linux-gnu/include"
+    LDFLAGS="${LDFLAGS} -L${PWD}/depends/${CARCH}-unknown-linux-gnu/lib -L${PWD}/depends/x86_64-unknown-linux-gnu/lib64"
+
+    ./autogen.sh
+    depends_prefix="${PWD}/depends/x86_64-unknown-linux-gnu" ./configure --prefix=/usr
+    make
+}
+
+check() {
+    cd ${pkgname}
+
+    # ./zcutil/fetch-params.sh
+    # ./qa/zcash/full_test_suite.py
+}
+
+package() {
+    cd ${pkgname}
+
+    make DESTDIR="${pkgdir}" install
+
+    for ext in '-cli' '-tx' 'd'; do
+        install -Dm644 contrib/bitcoin${ext}.bash-completion \
+            "${pkgdir}"/usr/share/bash-completion/completions/zcash${ext}
+    done
+
+    install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+}

Deleted: boost-no-mt-suffix.patch
===================================================================
--- boost-no-mt-suffix.patch	2017-11-22 15:02:35 UTC (rev 268046)
+++ boost-no-mt-suffix.patch	2017-11-22 15:02:49 UTC (rev 268047)
@@ -1,11 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -778,7 +778,7 @@
-   RUST_LIBS="-lrustzcash"
- fi
- 
--LIBZCASH_LIBS="-lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp $RUST_LIBS"
-+LIBZCASH_LIBS="-lsnark -lgmp -lgmpxx -lboost_system -lcrypto -lsodium -fopenmp $RUST_LIBS"
- 
- CXXFLAGS_TEMP="$CXXFLAGS"
- LIBS_TEMP="$LIBS"

Copied: zcash/repos/community-x86_64/boost-no-mt-suffix.patch (from rev 268046, zcash/trunk/boost-no-mt-suffix.patch)
===================================================================
--- boost-no-mt-suffix.patch	                        (rev 0)
+++ boost-no-mt-suffix.patch	2017-11-22 15:02:49 UTC (rev 268047)
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -770,7 +770,7 @@
+   LIBSNARK_DEPINST="$prefix"
+ fi
+ 
+-LIBZCASH_LIBS="-lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp $RUST_LIBS"
++LIBZCASH_LIBS="-lgmp -lgmpxx -lboost_system -lcrypto -lsodium -fopenmp $RUST_LIBS"
+ 
+ CXXFLAGS_TEMP="$CXXFLAGS"
+ LIBS_TEMP="$LIBS"

Deleted: use-system-libraries.patch
===================================================================
--- use-system-libraries.patch	2017-11-22 15:02:35 UTC (rev 268046)
+++ use-system-libraries.patch	2017-11-22 15:02:49 UTC (rev 268047)
@@ -1,11 +0,0 @@
---- a/depends/packages/libsnark.mk
-+++ b/depends/packages/libsnark.mk
-@@ -6,8 +6,6 @@
- $(package)_sha256_hash=dad153fe46e2e1f33557a195cbe7d69aed8b19ed9befc08ddcb8c6d3c025941f
- $(package)_git_commit=9ada3f84ab484c57b2247c2f41091fd6a0916573
- 
--$(package)_dependencies=libgmp libsodium
--
- define $(package)_build_cmds
-   CXXFLAGS="-fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64"
- endef

Deleted: use-system-rust.patch
===================================================================
--- use-system-rust.patch	2017-11-22 15:02:35 UTC (rev 268046)
+++ use-system-rust.patch	2017-11-22 15:02:49 UTC (rev 268047)
@@ -1,10 +0,0 @@
---- a/depends/packages/librustzcash.mk
-+++ b/depends/packages/librustzcash.mk
-@@ -5,7 +5,6 @@
- $(package)_download_file=$($(package)_git_commit).tar.gz
- $(package)_sha256_hash=a5760a90d4a1045c8944204f29fa2a3cf2f800afee400f88bf89bbfe2cce1279
- $(package)_git_commit=91348647a86201a9482ad4ad68398152dc3d635e
--$(package)_dependencies=rust
- 
- define $(package)_build_cmds
-   cargo build --release

Copied: zcash/repos/community-x86_64/use-system-rust.patch (from rev 268046, zcash/trunk/use-system-rust.patch)
===================================================================
--- use-system-rust.patch	                        (rev 0)
+++ use-system-rust.patch	2017-11-22 15:02:49 UTC (rev 268047)
@@ -0,0 +1,10 @@
+--- a/depends/packages/librustzcash.mk
++++ b/depends/packages/librustzcash.mk
+@@ -5,7 +5,6 @@
+ $(package)_download_file=$($(package)_git_commit).tar.gz
+ $(package)_sha256_hash=a5760a90d4a1045c8944204f29fa2a3cf2f800afee400f88bf89bbfe2cce1279
+ $(package)_git_commit=91348647a86201a9482ad4ad68398152dc3d635e
+-$(package)_dependencies=rust
+ 
+ define $(package)_build_cmds
+   cargo build --release


More information about the arch-commits mailing list