summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAdrian Perez de Castro2018-06-21 00:25:34 +0300
committerAdrian Perez de Castro2018-06-21 00:25:34 +0300
commit5e09c4d7a5b22a3ec35fc22f58d3780531f1297c (patch)
tree15be80c4f5645f2486a353d8adb80b248442f135 /PKGBUILD
downloadaur-5e09c4d7a5b22a3ec35fc22f58d3780531f1297c.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..5744e9501351
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
+pkgname=gomuks-git
+pkgdesc='A terminal based Matrix client written in Go'
+pkgver=r257.c3f30a1
+pkgrel=1
+url='https://github.com/tulir/gomuks'
+license=(GPL3)
+arch=(x86_64 i686)
+depends=(glibc)
+makedepends=(go)
+provides=("${pkgname%-git}")
+conflicts=("${provides[@]}")
+
+_gopkg='maunium.net/go/gomuks'
+
+pkgver () {
+ GOPATH="${srcdir}" go get -v -u -d "${_gopkg}"
+ cd "src/${_gopkg}"
+ ( set -o pipefail
+ git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+build () {
+ GOPATH="${srcdir}" go get -v "${_gopkg}"
+}
+
+package () {
+ install -Dm755 "${srcdir}/bin/gomuks" "${pkgdir}/usr/bin/gomuks"
+}