summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34d44d8a0d52706f09488ac86579ce147d2482b7 (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
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 
pkgname=doggo-git
_pkgname=doggo
pkgver=r92.e5acf12
pkgrel=1
pkgdesc="Command-line DNS Client for Humans. Written in Golang" 
arch=('any')
url="https://github.com/mr-karan/doggo"
license=('GPL3')
makedepends=('git' 'go')
provides=('doggo')
conflicts=('doggo')
options=()
source=(git+https://github.com/mr-karan/doggo.git)
md5sums=('SKIP')
build() {
	cd "${srcdir}"/"${_pkgname}"
	make
}

pkgver() {
	cd "${_pkgname}"
 	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "${srcdir}"/"${_pkgname}"
	mkdir -p "$pkgdir"/usr/bin/
	install -Dm755 "bin/doggo-cli.bin" "${pkgdir}"/usr/bin/"${_pkgname}"
	install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname2}/LICENSE"
}