diff options
author | Balló György | 2016-08-09 18:42:18 +0200 |
---|---|---|
committer | Balló György | 2016-08-09 18:42:18 +0200 |
commit | bfc29a567e079aaa7804e3853272f99725d9787a (patch) | |
tree | d59248705b7428a9967d133055fb6a1eb7978da4 | |
download | aur-bfc29a567e079aaa7804e3853272f99725d9787a.tar.gz |
Add gotk3-git
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..20bfe1e180cc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = gotk3-git + pkgdesc = Go bindings for GTK3 + pkgver = 20160809 + pkgrel = 1 + url = https://github.com/conformal/gotk3 + arch = x86_64 + arch = i686 + license = ISC + makedepends = git + depends = go + depends = gtk3 + provides = gotk3 + conflicts = gotk3 + options = !strip + options = !emptydirs + +pkgname = gotk3-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e535b252c46e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Balló György <ballogyor+arch at gmail dot com> + +pkgname=gotk3-git +pkgver=20160809 +pkgrel=1 +pkgdesc="Go bindings for GTK3" +arch=('x86_64' 'i686') +url="https://github.com/conformal/gotk3" +license=('ISC') +depends=('go' 'gtk3') +makedepends=('git') +conflicts=('gotk3') +provides=('gotk3') +options=('!strip' '!emptydirs') +_gourl=github.com/conformal/gotk3 + +build() { + GOPATH="$srcdir" go get -fix -v -x $_gourl/gtk +} + +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 '{}' \; +} |