[arch-commits] Commit in golang-github-linuxdeepin-go-lib/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Sep 2 09:01:31 UTC 2022
Date: Friday, September 2, 2022 @ 09:01:31
Author: felixonmars
Revision: 1290855
upgpkg: golang-github-linuxdeepin-go-lib 5.8.25-1
Modified:
golang-github-linuxdeepin-go-lib/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-02 09:01:25 UTC (rev 1290854)
+++ PKGBUILD 2022-09-02 09:01:31 UTC (rev 1290855)
@@ -1,7 +1,7 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=golang-github-linuxdeepin-go-lib
-pkgver=5.8.9.2
+pkgver=5.8.25
pkgrel=1
pkgdesc='A library containing many useful go routines for things such as glib, gettext, archive, graphic, etc.'
arch=('any')
@@ -10,33 +10,30 @@
depends=('dbus' 'go' 'libpulse' 'alsa-lib' 'libcanberra' 'gdk-pixbuf2' 'gdk-pixbuf-xlib'
'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
+checkdepends=('iso-codes' 'golang-gopkg-check.v1' 'golang-gopkg-yaml.v3'
+ 'golang-github-fsnotify-fsnotify' 'golang-github-stretchr-testify' 'git' 'dash') # git needed only for go get
replaces=('golang-deepin-lib')
conflicts=('golang-deepin-lib')
provides=('golang-deepin-lib')
source=("https://github.com/linuxdeepin/go-lib/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('193c27177e381468e380616bbf4c972fca17e2a94be05170b961130eca6d4c4b58a97a83ecc9d3fc7a30a1a1fc4e675d8deb7c63417920113905fbbedbca3b40')
+sha512sums=('b51e5c9c5497a09f57932e0e7beae34b32b438e47a29dbf56504f25742631d3268b206d2e22c880fea2e453a27403b3baa50c376cfcb3ffa49e9d4884df88136')
-export GO111MODULE=off
-
prepare() {
cd go-lib-$pkgver
- sed -i 's/int connect_timeout;/extern int connect_timeout;/' pulse/dde-pulse.h
+ sed -i 's|"sh"|"dash"|' shell/shell_test.go
}
check() {
+ export GO111MODULE=off
export GOPATH="$srcdir/build:/usr/share/gocode"
mkdir -p "$srcdir"/build/src/github.com/linuxdeepin
cp -a "$srcdir"/go-lib-$pkgver "$srcdir"/build/src/github.com/linuxdeepin/go-lib
cd "$srcdir"/build/src/github.com/linuxdeepin/go-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
+ go get github.com/cryptix/wav github.com/smartystreets/goconvey/convey github.com/mozillazg/go-pinyin github.com/godbus/dbus github.com/youpy/go-wav
# 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)
+ # gm: needs gmssl
+ go test -v $(go list ./... | grep -v -e lib/users/passwd -e lib/gm)
}
package() {
More information about the arch-commits
mailing list