Package Details: gomobile 20240203-1

Git Clone URL: https://aur.archlinux.org/gomobile.git (read-only, click to copy)
Package Base: gomobile
Description: Tool for building and running mobile apps written in Go
Upstream URL: https://github.com/golang/mobile
Licenses: custom:BSD
Submitter: atweiden
Maintainer: moe_narrow
Last Packager: moe_narrow
Votes: 0
Popularity: 0.000000
First Submitted: 2016-06-20 19:02 (UTC)
Last Updated: 2024-02-03 22:00 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

JohnMaguire commented on 2021-04-22 21:26 (UTC)

I received the following error:

install: cannot stat '/home/jmaguire/.cache/yay/gomobile/src/src/golang.org/x/mobile/AUTHORS': No such file or directory
install: cannot stat '/home/jmaguire/.cache/yay/gomobile/src/src/golang.org/x/mobile/LICENSE': No such file or directory
install: cannot stat '/home/jmaguire/.cache/yay/gomobile/src/src/golang.org/x/mobile/PATENTS': No such file or directory

I fixed it with this patch, but I think there is probably a better solution:

diff --git a/PKGBUILD b/PKGBUILD
index 67a9b18..9afa7f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Andy Weidenbaum <archbaum@gmail.com>

 pkgname=gomobile
-pkgver=20160620
+pkgver=20210422
 pkgrel=1
 pkgdesc="Tool for building and running mobile apps written in Go"
 arch=('i686' 'x86_64')
@@ -23,15 +23,15 @@ build() {

 package() {
   msg2 'Installing license...'
-  install -Dm 644 "$srcdir/src/golang.org/x/mobile"/{AUTHORS,LICENSE,PATENTS} \
+  install -Dm 644 "$srcdir/pkg/mod/golang.org/x/mobile@"*/{AUTHORS,LICENSE,PATENTS} \
           -t "$pkgdir/usr/share/licenses/gomobile"

   msg2 'Installing documentation...'
   for _doc in CONTRIB* README.md; do
-    install -Dm 644 "$srcdir/src/golang.org/x/mobile"/$_doc \
+    install -Dm 644 "$srcdir/pkg/mod/golang.org/x/mobile@"*/$_doc \
             -t "$pkgdir/usr/share/doc/gomobile"
   done
-  cp -dpr --no-preserve=ownership "$srcdir/src/golang.org/x/mobile/doc" \
+  cp -dpr --no-preserve=ownership "$srcdir/pkg/mod/golang.org/x/mobile@"* \
     "$pkgdir/usr/share/doc/gomobile"

   msg2 'Installing...'