[arch-commits] Commit in zcash/repos (4 files)
Frederik Schwan
freswa at archlinux.org
Wed Sep 16 22:52:09 UTC 2020
Date: Wednesday, September 16, 2020 @ 22:52:08
Author: freswa
Revision: 708415
archrelease: copy trunk to community-testing-x86_64
Added:
zcash/repos/community-testing-x86_64/
zcash/repos/community-testing-x86_64/PKGBUILD
(from rev 708414, zcash/trunk/PKGBUILD)
zcash/repos/community-testing-x86_64/use-system-rust.patch
(from rev 708414, zcash/trunk/use-system-rust.patch)
zcash/repos/community-testing-x86_64/zcashd.service
(from rev 708414, zcash/trunk/zcashd.service)
-----------------------+
PKGBUILD | 69 ++++++++++++++++++++++++++++++++++++++++++++++++
use-system-rust.patch | 14 +++++++++
zcashd.service | 9 ++++++
3 files changed, 92 insertions(+)
Copied: zcash/repos/community-testing-x86_64/PKGBUILD (from rev 708414, zcash/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-09-16 22:52:08 UTC (rev 708415)
@@ -0,0 +1,69 @@
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=zcash
+pkgver=4.0.0
+_commit=5e7e9687fc87a2426bafef2837174eac52978b4c
+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' 'cmake' 'git' 'gmock' 'python' 'rust' 'wget')
+checkdepends=('python-pyblake2' 'python-pyzmq' 'python-requests' 'python-simplejson')
+source=("git+https://github.com/zcash/zcash.git#commit=${_commit}"
+ 'use-system-rust.patch'
+ 'zcashd.service')
+sha512sums=('SKIP'
+ '1267fc174df81a80a1b0f2e1a6bbaaa6fa95402c83bc6a8678b582ed6c7f7a02eeed0f61c9600496aa782f9fb9fec6dc9ac419d366d059306a5c4f97a5a166f0'
+ '2fb8b0a636ca9c7ee15f0fd2c47046c8323ade3de9562f393da7541eee50dd14b12107dd29b0e1ee90ff88963e2f7e25b12435166a1812df5c88c579c12dde88')
+
+prepare() {
+ cd ${pkgname}
+
+ # Set gitattributes on src/clientversion.cpp
+ git archive --format=tar ${_commit} -- src/clientversion.cpp | tar -xf -
+
+ patch -Np1 -i ../use-system-rust.patch
+}
+
+build() {
+ cd ${pkgname}
+
+ cd depends
+ make install \
+ native_packages='' \
+ packages="bdb utfcpp"
+ cd ..
+
+ BUILD="$(./depends/config.guess)"
+ CPPFLAGS="${CPPFLAGS} -I${PWD}/depends/${BUILD}/include"
+ LDFLAGS="${LDFLAGS} -L${PWD}/depends/${BUILD}/lib"
+
+ ./autogen.sh
+ depends_prefix="${PWD}/depends/${BUILD}" ./configure --prefix=/usr \
+ --enable-online-rust
+ make RUST_TARGET="${BUILD}"
+}
+
+check() {
+ cd ${pkgname}
+
+ ./zcutil/fetch-params.sh --testnet
+ export RUST_TARGET="$(./depends/config.guess)"
+ ./qa/zcash/full_test_suite.py || true
+}
+
+package() {
+ cd ${pkgname}
+
+ make DESTDIR="${pkgdir}" RUST_TARGET="$(./depends/config.guess)" install
+
+ for ext in '-cli' '-tx' 'd'; do
+ install -Dm644 contrib/zcash${ext}.bash-completion \
+ "${pkgdir}"/usr/share/bash-completion/completions/zcash${ext}
+ done
+
+ install -Dm644 -t "${pkgdir}"/usr/lib/systemd/user ../zcashd.service
+ install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+}
Copied: zcash/repos/community-testing-x86_64/use-system-rust.patch (from rev 708414, zcash/trunk/use-system-rust.patch)
===================================================================
--- community-testing-x86_64/use-system-rust.patch (rev 0)
+++ community-testing-x86_64/use-system-rust.patch 2020-09-16 22:52:08 UTC (rev 708415)
@@ -0,0 +1,14 @@
+--- a/qa/zcash/full_test_suite.py
++++ b/qa/zcash/full_test_suite.py
+@@ -133,9 +133,9 @@
+
+ if os.path.isdir(depends_dir):
+ rust_env = os.environ.copy()
+- rust_env['RUSTC'] = os.path.join(depends_dir, 'native', 'bin', 'rustc')
++ rust_env['RUSTC'] = 'rustc'
+ return subprocess.call([
+- os.path.join(depends_dir, 'native', 'bin', 'cargo'),
++ 'cargo',
+ 'test',
+ '--manifest-path',
+ os.path.join(REPOROOT, 'Cargo.toml'),
Copied: zcash/repos/community-testing-x86_64/zcashd.service (from rev 708414, zcash/trunk/zcashd.service)
===================================================================
--- community-testing-x86_64/zcashd.service (rev 0)
+++ community-testing-x86_64/zcashd.service 2020-09-16 22:52:08 UTC (rev 708415)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Zcash daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/zcashd
+
+[Install]
+WantedBy=default.target
More information about the arch-commits
mailing list