summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalló György2016-08-09 18:40:46 +0200
committerBalló György2016-08-09 18:40:46 +0200
commite3d83808915b2bfaedb23f4ce34aa271d284e97b (patch)
tree54e1dd855a2ae59adfc8013a338a09884df02e72
downloadaur-e3d83808915b2bfaedb23f4ce34aa271d284e97b.tar.gz
Add go-notify-git
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD30
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..178749d78fa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = go-notify-git
+ pkgdesc = Go bindings for the C library libnotify
+ pkgver = 20160809
+ pkgrel = 1
+ url = https://github.com/mqu/go-notify
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = git
+ depends = go-gtk
+ depends = libnotify
+ provides = go-notify
+ conflicts = go-notify
+ options = !strip
+ options = !emptydirs
+
+pkgname = go-notify-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7fb18927701
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=go-notify-git
+pkgver=20160809
+pkgrel=1
+pkgdesc="Go bindings for the C library libnotify"
+arch=('x86_64' 'i686')
+url="https://github.com/mqu/go-notify"
+license=('MIT')
+depends=('go-gtk' 'libnotify')
+makedepends=('git')
+conflicts=('go-notify')
+provides=('go-notify')
+options=('!strip' '!emptydirs')
+_gourl=github.com/mqu/go-notify
+
+build() {
+ GOPATH="$srcdir" go get -fix -v -x ${_gourl}
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/lib/go"
+ cp -Rv --preserve=timestamps "$srcdir/"{src,pkg} "$pkgdir/usr/lib/go"
+ rm -r "$pkgdir/usr/lib/go/src/$_gourl/.git"
+ install -Dm644 "$srcdir/src/$_gourl/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ find "$pkgdir/usr/lib/go" \
+ -name ".*" -prune -exec rm -r '{}' \;
+}