summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbl00dy18372020-12-18 19:49:07 +0100
committerbl00dy18372020-12-18 19:49:07 +0100
commit165bb6a601652c4c6a87ff17c1f7dc488e0ce5f9 (patch)
tree21691070368c2766579cbfe26389b8ccbf758973
downloadaur-165bb6a601652c4c6a87ff17c1f7dc488e0ce5f9.tar.gz
initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..928acf48361
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = doggo-git
+ pkgdesc = Command-line DNS Client for Humans. Written in Golang
+ pkgver = r38.99e53d5
+ pkgrel = 1
+ url = https://github.com/mr-karan/doggo
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = go
+ provides = doggo
+ conflicts = doggo
+ source = git+https://github.com/mr-karan/doggo.git
+ md5sums = SKIP
+
+pkgname = doggo-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..79d91ce3e2c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch>
+pkgname=doggo-git
+_pkgname=doggo
+pkgver=r38.99e53d5
+pkgrel=1
+pkgdesc="Command-line DNS Client for Humans. Written in Golang"
+arch=('x86_64')
+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/$_pkgname" "$pkgdir"/usr/bin/
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname2}/LICENSE"
+}