blob: cc5150b2537481c7a22e737f963e5be23b7581f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Marek <mail@marek.onl>
pkgname=zebrad
pkgver=2.0.1
pkgrel=1
pkgdesc="A Zcash full-node"
url='https://github.com/ZcashFoundation/zebra'
source=("zebra-${pkgver//_/-}.tar.gz::${url}/archive/refs/tags/v${pkgver//_/-}.tar.gz")
arch=('aarch64' 'x86_64')
license=('Apache' 'MIT')
makedepends=('rust' 'clang' 'pkgconf')
sha256sums=(SKIP)
options=(!debug !lto)
build() {
cd "zebra-$pkgver" || exit
# Build Zebra.
cargo build --locked --release --features sentry --package zebrad --bin zebrad --target-dir target
}
package() {
cd "zebra-$pkgver" || exit
# 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}"
}
|