Date: Saturday, March 4, 2017 @ 13:47:26 Author: tensor5 Revision: 214876
archrelease: copy trunk to community-x86_64 Added: zcash/repos/community-x86_64/PKGBUILD (from rev 214875, zcash/trunk/PKGBUILD) zcash/repos/community-x86_64/boost-no-mt-suffix.patch (from rev 214875, zcash/trunk/boost-no-mt-suffix.patch) zcash/repos/community-x86_64/use-system-libraries.patch (from rev 214875, zcash/trunk/use-system-libraries.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 ----------------------------+ PKGBUILD | 142 +++++++++++++++++++++---------------------- boost-no-mt-suffix.patch | 22 +++--- use-system-libraries.patch | 22 +++--- 3 files changed, 93 insertions(+), 93 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-03-04 13:46:55 UTC (rev 214875) +++ PKGBUILD 2017-03-04 13:47:26 UTC (rev 214876) @@ -1,71 +0,0 @@ -# $Id$ -# Maintainer: Nicola Squartini <tens...@gmail.com> - -pkgname=zcash -pkgver=1.0.6 -pkgrel=2 -pkgdesc='Permissionless financial system employing zero-knowledge security' -arch=('x86_64') -url='https://z.cash/' -license=('MIT') -depends=('boost-libs' 'miniupnpc' 'zeromq') -makedepends=('boost' 'wget') -checkdepends=('python' 'python2' 'python2-pyzmq') -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=('7073068e9501910534be25634ce0bf73258cd0bcdf244d555dbfd9450d556d8a' - '55ebbffa2daf4a59135dc7b58b9553da21456934e676d6c08d4930bd14817c06' - 'ef8ab26635bb2608f03ddf991da3581060670161938171fa2e413758fa4bad3f') - -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-x86_64/PKGBUILD (from rev 214875, zcash/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-03-04 13:47:26 UTC (rev 214876) @@ -0,0 +1,71 @@ +# $Id$ +# Maintainer: Nicola Squartini <tens...@gmail.com> + +pkgname=zcash +pkgver=1.0.7 +pkgrel=1 +pkgdesc='Permissionless financial system employing zero-knowledge security' +arch=('x86_64') +url='https://z.cash/' +license=('MIT') +depends=('boost-libs' 'miniupnpc' 'zeromq') +makedepends=('boost' 'wget') +checkdepends=('python' 'python2' 'python2-pyzmq') +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=('6254709ed0df4b635759158c46313206ab1d3ba6f96db0de94883223063c6ce4' + '19c1a2f5f6623977c740322b0eb104766c72c5690fcf2bfefab956c81e80e583' + 'ef8ab26635bb2608f03ddf991da3581060670161938171fa2e413758fa4bad3f') + +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 +} Deleted: boost-no-mt-suffix.patch =================================================================== --- boost-no-mt-suffix.patch 2017-03-04 13:46:55 UTC (rev 214875) +++ boost-no-mt-suffix.patch 2017-03-04 13:47:26 UTC (rev 214876) @@ -1,11 +0,0 @@ ---- a/configure.ac -+++ b/configure.ac -@@ -775,7 +775,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-x86_64/boost-no-mt-suffix.patch (from rev 214875, zcash/trunk/boost-no-mt-suffix.patch) =================================================================== --- boost-no-mt-suffix.patch (rev 0) +++ boost-no-mt-suffix.patch 2017-03-04 13:47:26 UTC (rev 214876) @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -782,7 +782,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" Deleted: use-system-libraries.patch =================================================================== --- use-system-libraries.patch 2017-03-04 13:46:55 UTC (rev 214875) +++ use-system-libraries.patch 2017-03-04 13:47:26 UTC (rev 214876) @@ -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 Copied: zcash/repos/community-x86_64/use-system-libraries.patch (from rev 214875, zcash/trunk/use-system-libraries.patch) =================================================================== --- use-system-libraries.patch (rev 0) +++ use-system-libraries.patch 2017-03-04 13:47:26 UTC (rev 214876) @@ -0,0 +1,11 @@ +--- 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