blob: cb06d7436ccf57e294695f691e7456ff2b7a115c (
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
|
# Maintainer: blallo <blallo@autistici.org>
pkgname=doh-curl-git
pkgrel=1
pkgver=0.1.r20.g17fd81d
pkgdesc='stand-alone application for DoH (DNS-over-HTTPS) name resolves and lookups'
arch=(any)
url=https://github.com/curl/doh
license=('MIT')
depends=('gcc-libs')
makedepends=('git' 'make' 'gcc')
source=("git+https://github.com/curl/doh.git")
sha256sums=('SKIP')
provides=('doh')
pkgver() {
cd "$srcdir/doh"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^doh\.//' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/doh"
make
}
package() {
local BINDIR=/usr/bin
local MANDIR=/usr/share/man
cd "$srcdir/doh"
install -d "$pkgdir$BINDIR"
install -m 0755 doh "$pkgdir$BINDIR"
install -d "$pkgdir$MANDIR/man1/"
install -m 0744 doh.1 "$pkgdir$MANDIR/man1/"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/doh/LICENSE"
}
# vim:set ts=2 sw=2 et:
|