[arch-commits] Commit in golang-github-linuxdeepin-go-x11-client/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Apr 28 08:46:47 UTC 2020


    Date: Tuesday, April 28, 2020 @ 08:46:47
  Author: felixonmars
Revision: 621985

archrelease: copy trunk to community-staging-any

Added:
  golang-github-linuxdeepin-go-x11-client/repos/community-staging-any/
  golang-github-linuxdeepin-go-x11-client/repos/community-staging-any/PKGBUILD
    (from rev 621984, golang-github-linuxdeepin-go-x11-client/trunk/PKGBUILD)

----------+
 PKGBUILD |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Copied: golang-github-linuxdeepin-go-x11-client/repos/community-staging-any/PKGBUILD (from rev 621984, golang-github-linuxdeepin-go-x11-client/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-04-28 08:46:47 UTC (rev 621985)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-linuxdeepin-go-x11-client
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='X11 protocol go language binding'
+arch=('any')
+url="https://github.com/linuxdeepin/go-x11-client"
+license=('GPL')
+depends=('go-pie' 'golang-deepin-lib' 'golang-golang-x-text')
+checkdepends=('xorg-server-xvfb' 'golang-github-stretchr-testify' 'golang-gopkg-check.v1' 'golang-gopkg-yaml.v2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/go-x11-client/archive/$pkgver.tar.gz")
+sha512sums=('56fa34ce428a1cce97182cd28e9978e542a6c1b5567881f37605e8c05dce0f6470c08055a08f21a62d652f3adca77e0e0f828cef5b0835f6d3a78727a8640dca')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/linuxdeepin
+  cp -a "$srcdir"/go-x11-client-$pkgver "$srcdir"/build/src/github.com/linuxdeepin/go-x11-client
+  cd "$srcdir"/build/src/github.com/linuxdeepin/go-x11-client
+  xvfb-run go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/linuxdeepin
+  cp -a "$srcdir"/go-x11-client-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/linuxdeepin/go-x11-client
+
+  rm -r "$pkgdir"/usr/share/gocode/src/github.com/linuxdeepin/go-x11-client/debian
+}


More information about the arch-commits mailing list