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

Felix Yan felixonmars at archlinux.org
Mon May 17 20:04:37 UTC 2021


    Date: Monday, May 17, 2021 @ 20:04:37
  Author: felixonmars
Revision: 936101

archrelease: copy trunk to community-testing-any

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

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

Copied: golang-github-linuxdeepin-go-dbus-factory/repos/community-testing-any/PKGBUILD (from rev 936100, golang-github-linuxdeepin-go-dbus-factory/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-05-17 20:04:37 UTC (rev 936101)
@@ -0,0 +1,54 @@
+# 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.9.6
+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' 'git')
+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=('390ad5ba6928ca0b0676f98d4a208a9915e950838e360d4e756b4eb75202f73b97c10fe7f68b9b284959d26254c4143488c75d9d5c6122568458e7956808ec74')
+
+export GO111MODULE=off
+
+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
+
+  go get github.com/godbus/dbus github.com/fsnotify/fsnotify
+}
+
+build() {
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
+  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