summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0dae8386cc5b807d77dded1fd4828b7bb5b723f7 (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
# Maintainer: Bruno Miguel

pkgname=q-dns-git
pkgdesc='A tiny command line DNS client with support for UDP, DoT, DoH, and DoQ.'
arch=(x86_64)
url='https://github.com/natesales/q'
pkgrel=2
license=('GPL-3.0')
makedepends=('go' 'git')
source=('git+https://github.com/natesales/q')
md5sums=('SKIP')
provides=($pkgname)
conflicts=($pkgname)
pkgver=0.1.1.r1.gfe236bd

pkgver() {
    cd 'q'
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
  cd 'q'
  go build -o q main.go
}

package() {
  cd 'q'
  install -Dm755 q '$pkgdir'/usr/bin/q-dns
}