blob: 7fe3cdd1450186c14dec8deab13633817119f02b (
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
|
# Maintainer: Maximilian Bräutigam <mail@xbra.de>
# Contributor: Sieve Lau <sievelau@gmail.com>
# Contributor: Sherlock-Holo <sherlockya@gmail.com>
pkgname=dns-over-https-git
pkgver=r358.967ca01
pkgrel=1
pkgdesc="Client and server software to query DNS over HTTPS, using Google DNS-over-HTTPS protocol"
url="https://github.com/m13253/dns-over-https"
arch=('x86_64' 'i686')
license=('MIT')
depends=('glibc')
makedepends=('go' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/m13253/dns-over-https"
"dns-over-https.patch")
backup=('etc/dns-over-https/doh-client.conf'
'etc/dns-over-https/doh-server.conf')
md5sums=('SKIP'
'325a2ab8a23549d6c5e53afaa0d8a740')
pkgver(){
cd $srcdir/${pkgname%-git}
( set -o pipefail
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
prepare(){
cd "$srcdir/${pkgname%-git}"
git apply "$srcdir/${pkgname%-git}.patch"
}
build(){
cd "$srcdir/${pkgname%-git}"
make
}
package(){
cd "$srcdir/${pkgname%-git}"
make DESTDIR="$pkgdir/" install
}
|