[arch-commits] Commit in golang-deepin-lib/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Aug 26 22:58:07 UTC 2020


    Date: Wednesday, August 26, 2020 @ 22:58:06
  Author: felixonmars
Revision: 689165

archrelease: copy trunk to community-any

Added:
  golang-deepin-lib/repos/community-any/PKGBUILD
    (from rev 689164, golang-deepin-lib/trunk/PKGBUILD)
Deleted:
  golang-deepin-lib/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   85 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 40 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-26 22:57:57 UTC (rev 689164)
+++ PKGBUILD	2020-08-26 22:58:06 UTC (rev 689165)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=golang-deepin-lib
-pkgver=5.5.0.1
-pkgrel=3
-pkgdesc='A library containing many useful go routines for things such as glib, gettext, archive, graphic,etc.'
-arch=('any')
-url="https://github.com/linuxdeepin/go-lib"
-license=('GPL3')
-depends=('dbus' 'go' 'libpulse' 'gdk-pixbuf2' 'mobile-broadband-provider-info' 'libx11'
-         'golang-gopkg-alecthomas-kingpin.v2' 'golang-deepin-gir'
-         'golang-github-linuxdeepin-go-x11-client' 'golang-golang-x-net' 'golang-golang-x-image')
-         # 'golang-github-cryptix-wav' not packaged yet, paused until our go packaging standards formed
-checkdepends=('iso-codes' 'golang-gopkg-check.v1' 'git') # git needed only for go get
-replaces=('deepin-go-lib')
-conflicts=('deepin-go-lib')
-provides=('deepin-go-lib')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/go-lib/archive/$pkgver.tar.gz")
-sha512sums=('b434792783a0be46aaa1a79a94861cd812f8b2b04267e1406f646b1176e5d9161f3565143db485e1b390ff43d6dfdc47eb15a89fb1af7661fb465ec7c188baf2')
-
-prepare() {
-  cd go-lib-$pkgver
-  sed -i 's/int connect_timeout;/extern int connect_timeout;/' pulse/dde-pulse.h
-}
-
-check() {
-  export GOPATH="$srcdir/build:/usr/share/gocode"
-  mkdir -p "$srcdir"/build/src/pkg.deepin.io
-  cp -a "$srcdir"/go-lib-$pkgver "$srcdir"/build/src/pkg.deepin.io/lib
-  cd "$srcdir"/build/src/pkg.deepin.io/lib
-  # TODO: make packages for them
-  go get github.com/cryptix/wav github.com/smartystreets/goconvey/convey github.com/mozillazg/go-pinyin gopkg.in/yaml.v3
-  # TODO: figure out why pulse tests hang
-  # passwd: test needs to access /etc/passwd
-  # group & timer & log & dbus: build failed
-  # shell: TestEncode failed
-  go test -v $(go list ./... | grep -v -e lib/pulse -e lib/users/passwd -e lib/users/group -e lib/timer -e lib/log -e lib/dbus -e lib/shell)
-}
-
-package() {
-  mkdir -p "$pkgdir"/usr/share/gocode/src/pkg.deepin.io
-  cp -a "$srcdir"/go-lib-$pkgver "$pkgdir"/usr/share/gocode/src/pkg.deepin.io/lib
-
-  rm -r "$pkgdir"/usr/share/gocode/src/pkg.deepin.io/lib/debian
-}

Copied: golang-deepin-lib/repos/community-any/PKGBUILD (from rev 689164, golang-deepin-lib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-26 22:58:06 UTC (rev 689165)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-deepin-lib
+pkgver=5.5.0.6
+pkgrel=1
+pkgdesc='A library containing many useful go routines for things such as glib, gettext, archive, graphic,etc.'
+arch=('any')
+url="https://github.com/linuxdeepin/go-lib"
+license=('GPL3')
+depends=('dbus' 'go' 'libpulse' 'gdk-pixbuf2' 'mobile-broadband-provider-info' 'libx11'
+         'golang-gopkg-alecthomas-kingpin.v2' 'golang-deepin-gir'
+         'golang-github-linuxdeepin-go-x11-client' 'golang-golang-x-net' 'golang-golang-x-image')
+         # 'golang-github-cryptix-wav' not packaged yet, paused until our go packaging standards formed
+checkdepends=('iso-codes' 'golang-gopkg-check.v1' 'git') # git needed only for go get
+replaces=('deepin-go-lib')
+conflicts=('deepin-go-lib')
+provides=('deepin-go-lib')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/go-lib/archive/$pkgver.tar.gz")
+sha512sums=('f8d06d838d0785d6fc25e348aa12229c834c50fdf1eec84d126decfe7575f11871e6aced9512ca49d9cf3d8f5ac5d2c66b2801977a1df234eafc52bb7ec30e91')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/pkg.deepin.io
+  cp -a "$srcdir"/go-lib-$pkgver "$srcdir"/build/src/pkg.deepin.io/lib
+  cd "$srcdir"/build/src/pkg.deepin.io/lib
+  # TODO: make packages for them
+  go get github.com/cryptix/wav github.com/smartystreets/goconvey/convey github.com/mozillazg/go-pinyin gopkg.in/yaml.v3 github.com/godbus/dbus github.com/fsnotify/fsnotify
+  # TODO: figure out why pulse tests hang
+  # passwd: test needs to access /etc/passwd
+  # group & timer & log & dbus: build failed
+  # shell: TestEncode failed
+  go test -v $(go list ./... | grep -v -e lib/pulse -e lib/users/passwd -e lib/users/group -e lib/timer -e lib/log -e lib/dbus -e lib/shell)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/pkg.deepin.io
+  cp -a "$srcdir"/go-lib-$pkgver "$pkgdir"/usr/share/gocode/src/pkg.deepin.io/lib
+
+  rm -r "$pkgdir"/usr/share/gocode/src/pkg.deepin.io/lib/debian
+}



More information about the arch-commits mailing list