[arch-commits] Commit in zcash/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 28 14:55:30 UTC 2017
Date: Thursday, December 28, 2017 @ 14:55:29
Author: felixonmars
Revision: 276471
archrelease: copy trunk to community-staging-x86_64
Added:
zcash/repos/community-staging-x86_64/
zcash/repos/community-staging-x86_64/PKGBUILD
(from rev 276470, zcash/trunk/PKGBUILD)
zcash/repos/community-staging-x86_64/boost-no-mt-suffix.patch
(from rev 276470, zcash/trunk/boost-no-mt-suffix.patch)
zcash/repos/community-staging-x86_64/use-system-rust.patch
(from rev 276470, zcash/trunk/use-system-rust.patch)
--------------------------+
PKGBUILD | 67 +++++++++++++++++++++++++++++++++++++++++++++
boost-no-mt-suffix.patch | 11 +++++++
use-system-rust.patch | 10 ++++++
3 files changed, 88 insertions(+)
Copied: zcash/repos/community-staging-x86_64/PKGBUILD (from rev 276470, zcash/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-28 14:55:29 UTC (rev 276471)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=zcash
+pkgver=1.0.13
+_commit=3ee1d04a8dff26e81aaf17095a0e2472bc70cf36
+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-rust.patch")
+sha512sums=('SKIP'
+ '52fe5fb312d310514d70961b8c5c9afd6559b6bd36d531eb08c08264f2071cd94f4f569633e604b4e6e127a40511319ced1ccbe796ae5fc70453352ab15239f7'
+ '3663373af04318aa72d877f399f0c9e956d289ac876583e70afa2933bf4171f7441a399e043b2d29b1df6d19d29390bb69d4053cad4b75bef903a8685fcd23bf')
+
+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
+}
Copied: zcash/repos/community-staging-x86_64/boost-no-mt-suffix.patch (from rev 276470, 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-12-28 14:55:29 UTC (rev 276471)
@@ -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"
Copied: zcash/repos/community-staging-x86_64/use-system-rust.patch (from rev 276470, zcash/trunk/use-system-rust.patch)
===================================================================
--- community-staging-x86_64/use-system-rust.patch (rev 0)
+++ community-staging-x86_64/use-system-rust.patch 2017-12-28 14:55:29 UTC (rev 276471)
@@ -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