[arch-commits] Commit in zcash/repos (4 files)

Antonio Rojas arojas at archlinux.org
Wed Jan 4 08:50:59 UTC 2017


    Date: Wednesday, January 4, 2017 @ 08:50:58
  Author: arojas
Revision: 204833

archrelease: copy trunk to community-staging-x86_64

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

----------------------------+
 PKGBUILD                   |   71 +++++++++++++++++++++++++++++++++++++++++++
 boost-no-mt-suffix.patch   |   11 ++++++
 use-system-libraries.patch |   11 ++++++
 3 files changed, 93 insertions(+)

Copied: zcash/repos/community-staging-x86_64/PKGBUILD (from rev 204832, zcash/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-01-04 08:50:58 UTC (rev 204833)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=zcash
+pkgver=1.0.4
+pkgrel=2
+pkgdesc='Permissionless financial system employing zero-knowledge security'
+arch=('x86_64')
+url='https://z.cash/'
+license=('MIT')
+depends=('bash' 'boost-libs' 'gmp' 'libsodium')
+makedepends=('boost' 'wget')
+checkdepends=('python' 'python2')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/zcash/zcash/archive/v${pkgver}.tar.gz"
+        "boost-no-mt-suffix.patch"
+        "use-system-libraries.patch")
+sha256sums=('18df95b1958e71c9dc773b4d3953df2b6d7b5fbfcd2677be1190c9e03eff5d44'
+            '3476e5fc227ada40cfbd126fc2c4d85a0951163dc57d92c294b0716f6030b774'
+            '4a386d9f407b589fd2df9dd9ba0ddf99def2f9bb88fac4ec602fa29af317fc0d')
+
+prepare() {
+    cd ${pkgname}-${pkgver}
+
+    patch -Np1 -i ../boost-no-mt-suffix.patch
+    patch -Np1 -i ../use-system-libraries.patch
+}
+
+build() {
+    cd ${pkgname}-${pkgver}
+
+    cd depends
+    libs=('bdb' 'googletest' 'googlemock' 'libsnark' 'openssl')
+    for lib in "${libs[@]}"; do
+        make ${lib}
+    done
+    for lib in "${libs[@]}"; do
+        tar -xzf built/x86_64-unknown-linux-gnu/${lib}/${lib}-*.tar.gz \
+            -C x86_64-unknown-linux-gnu
+    done
+    cd ..
+
+    CPPFLAGS="${CPPFLAGS} -I$PWD/depends/x86_64-unknown-linux-gnu/include"
+    LDFLAGS="${LDFLAGS} -L${PWD}/depends/x86_64-unknown-linux-gnu/lib"
+
+    ./autogen.sh
+    ./configure --prefix=/usr --with-gui=no
+    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-staging-x86_64/boost-no-mt-suffix.patch (from rev 204832, zcash/trunk/boost-no-mt-suffix.patch)
===================================================================
--- community-staging-x86_64/boost-no-mt-suffix.patch	                        (rev 0)
+++ community-staging-x86_64/boost-no-mt-suffix.patch	2017-01-04 08:50:58 UTC (rev 204833)
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -730,7 +730,7 @@
+ AC_CHECK_HEADER([libsnark/gadgetlib1/gadget.hpp],,AC_MSG_ERROR(libsnark headers missing))
+ AC_CHECK_LIB([snark],[main],LIBSNARK_LIBS=-lsnark, [AC_MSG_ERROR(libsnark missing)], [-lgmpxx])
+ 
+-LIBZCASH_LIBS="-lsnark -lgmp -lgmpxx -lboost_system-mt -lcrypto -lsodium -fopenmp"
++LIBZCASH_LIBS="-lsnark -lgmp -lgmpxx -lboost_system -lcrypto -lsodium -fopenmp"
+ 
+ CXXFLAGS_TEMP="$CXXFLAGS"
+ LIBS_TEMP="$LIBS"

Copied: zcash/repos/community-staging-x86_64/use-system-libraries.patch (from rev 204832, zcash/trunk/use-system-libraries.patch)
===================================================================
--- community-staging-x86_64/use-system-libraries.patch	                        (rev 0)
+++ community-staging-x86_64/use-system-libraries.patch	2017-01-04 08:50:58 UTC (rev 204833)
@@ -0,0 +1,11 @@
+--- a/depends/packages/libsnark.mk
++++ b/depends/packages/libsnark.mk
+@@ -6,8 +6,6 @@
+ $(package)_sha256_hash=9422b1a2a94e6b8be61f07af7f146087c2a7d70b208d07ad076622225aa7f0e4
+ $(package)_git_commit=2e6314a9f7efcd9af1c77669d7d9a229df86a777
+ 
+-$(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



More information about the arch-commits mailing list