blob: 600ebbf03f1467f0c4bfc8982029278af3bfeb05 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# -*- mode: Shell-script; eval: (setq indent-tabs-mode 't); eval: (setq tab-width 4) -*-
# Maintainer: Dominic Meiser [git at msrd0 dot de]
_crate="hickory-dns"
pkgname="hickory-dns"
pkgver=0.24.1
pkgrel=1
pkgdesc='Hickory DNS is a safe and secure DNS server with DNSSEC support. Eventually t...'
url='https://hickory-dns.org/'
license=('Apache-2.0' 'MIT')
depends=('gcc-libs')
makedepends=('cargo')
replaces=('trust-dns')
source=("$_crate-0.24.1.tar.gz::https://crates.io/api/v1/crates/hickory-dns/0.24.1/download"
'hickory-dns.service')
sha512sums=('f16a4fa986ebe1c7ef0300534e8bb98b09caf8292fe925e2598e27bb400bedf21c4d8bb938a03e2c992aa90c7d3cf8c80d01b9fe3e1be467889c35958b0385d5'
"fc985e788258f918f7239d207418b1c68a110cff3722682b812b34548727e077f71745c07f28df28999523c80a54480a688fdf2cbf7c1ffa068cce24c3f49baf")
# Tier 1 architectures supported by Rust (https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-1)
arch=('aarch64' 'i686' 'x86_64')
prepare() {
cd "$srcdir/$_crate-0.24.1"
export RUSTUP_TOOLCHAIN=stable
cargo update
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/$_crate-0.24.1"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
CFLAGS+=" -ffat-lto-objects"
cargo build \
--offline \
--locked \
--features 'dns-over-https-rustls,dns-over-h3,dns-over-quic' \
--release
}
package() {
cd "$srcdir/$_crate-0.24.1"
install -Dm755 "target/release/hickory-dns" -t "$pkgdir/usr/bin"
install -Dm644 'LICENSE-MIT' -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 'LICENSE-APACHE' -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 "$srcdir/hickory-dns.service" -t "$pkgdir//usr/lib/systemd/system/"
}
|