diff options
author | Marek | 2023-03-03 23:58:40 +0100 |
---|---|---|
committer | Marek | 2023-03-03 23:58:40 +0100 |
commit | c25d0928deb0135ac168211bd3fb054d43c8e99e (patch) | |
tree | 56ac902cbaf49779cdcdd506eaac030564997dcb | |
download | aur-c25d0928deb0135ac168211bd3fb054d43c8e99e.tar.gz |
v1.0.0-rc.5
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..140c65908831 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = zebrad + pkgdesc = ZF's independent, consensus-compatible implementation of a Zcash node + pkgver = 1.0.0_rc.5 + pkgrel = 1 + url = https://github.com/ZcashFoundation/zebra + arch = aarch64 + arch = x86_64 + license = Apache + license = MIT + makedepends = rust + makedepends = clang + makedepends = pkgconf + source = zebra-1.0.0-rc.5.tar.gz::https://github.com/ZcashFoundation/zebra/archive/refs/tags/v1.0.0-rc.5.tar.gz + sha256sums = SKIP + +pkgname = zebrad diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6f4d498b54c7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Marek <mail@marek.onl> + +pkgname=zebrad +pkgver=1.0.0_rc.5 +pkgrel=1 +pkgdesc="ZF's independent, consensus-compatible implementation of a Zcash node" +url='https://github.com/ZcashFoundation/zebra' +source=("zebra-${pkgver//_/-}.tar.gz::https://github.com/ZcashFoundation/zebra/archive/refs/tags/v${pkgver//_/-}.tar.gz") +arch=('aarch64' 'x86_64') +license=('Apache' 'MIT') +makedepends=('rust' 'clang' 'pkgconf') +sha256sums=(SKIP) + +build () { + cd "${srcdir}/zebra-${pkgver//_/-}" || exit 1 + + # Build Zebra. + cargo build --locked --release --features sentry --package zebrad --bin zebrad --target-dir target +} + +package() { + cd "${srcdir}/zebra-${pkgver//_/-}" || exit 1 + + # Install the binary. + install -Dm 755 target/release/zebrad "${pkgdir}/usr/bin/${pkgname}" + + # Install documentation. + install -Dm 644 CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 CODE_OF_CONDUCT.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 CONTRIBUTING.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 SECURITY.md -t "${pkgdir}/usr/share/doc/${pkgname}" + + # Install licenses. + install -Dm 644 LICENSE-{APACHE,MIT} -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |