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

Felix Yan felixonmars at archlinux.org
Wed Apr 29 11:29:34 UTC 2020


    Date: Wednesday, April 29, 2020 @ 11:29:34
  Author: felixonmars
Revision: 622237

archrelease: copy trunk to community-staging-any

Added:
  golang-github-linuxdeepin-go-dbus-factory/repos/community-staging-any/
  golang-github-linuxdeepin-go-dbus-factory/repos/community-staging-any/PKGBUILD
    (from rev 622236, golang-github-linuxdeepin-go-dbus-factory/trunk/PKGBUILD)

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

Copied: golang-github-linuxdeepin-go-dbus-factory/repos/community-staging-any/PKGBUILD (from rev 622236, golang-github-linuxdeepin-go-dbus-factory/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-04-29 11:29:34 UTC (rev 622237)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=golang-github-linuxdeepin-go-dbus-factory
+pkgver=1.6.4
+pkgrel=1
+pkgdesc='GO DBus factory for DDE'
+arch=('any')
+url="https://github.com/linuxdeepin/go-dbus-factory"
+license=('GPL3')
+depends=('golang-deepin-lib')
+makedepends=('go-pie')
+provides=('deepin-go-dbus-factory')
+conflicts=('deepin-go-dbus-factory')
+replaces=('deepin-go-dbus-factory')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/go-dbus-factory/archive/$pkgver.tar.gz")
+sha512sums=('97b74f3c759062bae3b95d5f4c2db62cd98559d64161724070546e556b147af05ae19b5084310c091c83368393df26380032c4e24ef8412a751a6bfed3cef754')
+
+prepare() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/linuxdeepin
+  cp -a "$srcdir"/go-dbus-factory-$pkgver "$srcdir"/build/src/github.com/linuxdeepin/go-dbus-factory
+}
+
+build() {
+  cd "$srcdir"/build/src/github.com/linuxdeepin/go-dbus-factory
+  make bin
+
+  # Suggested by upstream: don't run
+  # ./gen.sh
+}
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  cd "$srcdir"/build/src/github.com/linuxdeepin/go-dbus-factory
+  go test -v $(go list ./...)
+}
+
+package() {
+  cd "$srcdir"/build/src/github.com/linuxdeepin/go-dbus-factory
+  install -dm755 "$pkgdir"/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory
+  cp -a com.* org.* net.* object_manager "$pkgdir"/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/
+}



More information about the arch-commits mailing list