summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrey Burov2018-02-08 15:20:21 +0000
committerAndrey Burov2018-02-08 15:20:21 +0000
commit89b35cf5a1f2301dee970810c4003375b32ee03f (patch)
treefc81350f4f9a6fa1690a387b64cdc8a86bb7396e /PKGBUILD
downloadaur-89b35cf5a1f2301dee970810c4003375b32ee03f.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 00000000000..5285ddcf88d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Andrey Burov <burik666@gmail.com>
+
+pkgname=yagostatus-git
+pkgver=0.1.0.r0.gd9b3aef
+pkgrel=1
+pkgdesc='Yet Another i3status replacement written in Go.'
+arch=('x86_64' 'i686')
+url='https://github.com/burik666/yagostatus'
+license=('GPL3')
+makedepends=('go' 'git')
+options=('!strip' '!emptydirs')
+source=('git+https://github.com/burik666/yagostatus.git')
+md5sums=('SKIP')
+_gourl='github.com/burik666/yagostatus'
+
+pkgver() {
+ cd "$srcdir/yagostatus"
+ git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ GOPATH="$srcdir" go get -v "$_gourl"
+}
+
+package() {
+ _gitdir="$srcdir/src/$_gourl"
+
+ install -p -m 755 -D -t "$pkgdir/usr/bin/" "$srcdir/bin/yagostatus"
+ install -m 644 -D -t "$pkgdir/usr/share/$pkgname/" "$_gitdir/README.md"
+ install -m 644 -D -t "$pkgdir/usr/share/$pkgname/" "$_gitdir/yagostatus.yml"
+}