[arch-commits] Commit in golang-deepin-lib/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Apr 29 08:12:21 UTC 2020
Date: Wednesday, April 29, 2020 @ 08:12:20
Author: felixonmars
Revision: 622186
archrelease: copy trunk to community-staging-any
Added:
golang-deepin-lib/repos/community-staging-any/
golang-deepin-lib/repos/community-staging-any/PKGBUILD
(from rev 622185, golang-deepin-lib/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: golang-deepin-lib/repos/community-staging-any/PKGBUILD (from rev 622185, golang-deepin-lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-04-29 08:12:20 UTC (rev 622186)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-deepin-lib
+pkgver=5.4.5
+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-pie' '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' 'golang-gopkg-yaml.v2' '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=('89891b6274e37ec16e21cc17f5d4c3c24d8da33e4ad7e9dfdf5b8c03d70a8c2283a64c40c4706e21a3ac9f4d9bdcde8b4764eb38012e274b5cf366be3d5f13e6')
+
+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
+ # 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