blob: 05e290996377b1af4a86069bcd700496834043e4 (
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
|
# vim: filetype=sh ts=2 sw=2 et:
# Maintainer: LinkTed <link.ted@mailbox.org>
pkgname=doh-client
pkgver=3.1.2
pkgrel=1
pkgdesc="doh-client is a DNS over HTTPS client"
arch=("x86_64" "armv7h")
url="https://github.com/LinkTed/doh-client"
license=("BSD 3-Clause")
depends=("ca-certificates-utils")
makedepends=("cargo" "rust" "git" "binutils")
source=("git+https://github.com/LinkTed/$pkgname.git#tag=v$pkgver")
md5sums=("SKIP")
conflicts=("dns-over-https" "dns-over-https-git" "dns-over-https-client-git")
build() {
cd $pkgname
cargo build --release --bin doh-client
strip "target/release/doh-client"
}
package() {
cd $pkgname
install -Dm755 "target/release/doh-client" "$pkgdir/usr/bin/doh-client"
install -Dm644 "completions/_doh-client" \
"$pkgdir/usr/share/zsh/site-functions/_$pkgname"
install -Dm644 "completions/doh-client.bash" \
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm644 "completions/doh-client.fish" \
"$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "package/linux/usr.bin.doh-client" \
"$pkgdir/etc/apparmor.d/usr.bin.doh-client"
install -Dm644 "package/linux/doh-client.service" \
"$pkgdir/usr/lib/systemd/system/doh-client.service"
install -Dm644 "package/linux/doh-client.socket" \
"$pkgdir/usr/lib/systemd/system/doh-client.socket"
}
|