Package Details: pms-git 0.42.r835.gcae1f02-2

Git Clone URL: https://aur.archlinux.org/pms-git.git (read-only, click to copy)
Package Base: pms-git
Description: Practical Music Search is an interactive Vim-like console client for the Music Player Daemon.
Upstream URL: https://github.com/ambientsound/pms
Licenses: MIT
Submitter: stefanc_diff
Maintainer: stefanc_diff (samhh)
Last Packager: samhh
Votes: 1
Popularity: 0.000001
First Submitted: 2019-06-10 17:16
Last Updated: 2021-02-03 22:16

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

sclu1034 commented on 2021-02-04 17:31

@samhh It's been a while since I've used Go properly, but I believe that by default it doesn't update dependencies. Since I wasn't sure about the correct method to only update as needed, I used that line as a head-through-the-wall method of cleaning and re-downloading all dependencies.

samhh commented on 2021-02-03 22:17

Thanks for the feedback folks, much appreciated! I've applied most of that patch as pkgrel 2.

Only part I excluded was the go clean -modcache; from a cursory search I couldn't see what purpose that served here. Does it?

cheezsteak commented on 2021-02-03 21:31

I can confirm @sclu1034 changes work. Packages should not assume ~/go/ exists. I have not had this problem with other packages built with go.

Here's another example of a package setting GOPATH to srcdir, lazygit-git

sclu1034 commented on 2021-02-03 20:44

This fails to build for me as well, due to my non-default GOPATH. The patch I applied to get it working and not write outside the build directories is:

diff --git a/PKGBUILD b/PKGBUILD
index 4aec9e7..3f00fb6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,6 +17,11 @@ url="https://github.com/$_pkgauthor/$_upstream_pkgname"
 source=("$_upstream_pkgname::git+https://github.com/$_pkgauthor/$_upstream_pkgname.git")
 sha256sums=('SKIP')

+prepare() {
+  export GOPATH="${srcdir}/gopath"
+  go clean -modcache
+}
+
 pkgver() {
   cd "$_upstream_pkgname"
   git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
@@ -29,6 +34,6 @@ build() {
 }

 package() {
-  install -Dm755 "$HOME/go/bin/$_upstream_pkgname" "$pkgdir/usr/bin/$_upstream_pkgname"
+  install -Dm755 "$GOPATH/bin/$_upstream_pkgname" "$pkgdir/usr/bin/$_upstream_pkgname"
   install -Dm644 "$_upstream_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$_upstream_pkgname/LICENSE"
 }

samhh commented on 2020-11-27 13:39

@flu This works for me with both Aura and Paru. It looks as if your Go isn't building to the expected directory, namely ~/go/bin/ - any idea where Go is putting stuff for you? Do you perhaps have $GOPATH set? I think we're currently assuming the default Go uses if it's not set.

I've not got much experience with Go install scripts but I'm tempted to replace the "install" command with a "build" command so that it's output in the PWD.

flu commented on 2020-11-24 11:48

It fails to build for me: ==> Starting package()... install: cannot stat '/home/sfx/go/bin/pms': No such file or directory

I'm using paru.

samhh commented on 2020-09-21 13:21

Hey everyone, second maintainer here. I've pushed up some changes that have fixed the build entirely on my machine, let me know if there are any further problems and I'll see to them.

stefanc_diff commented on 2020-09-21 11:46

It will be soon as now we have 2 maintainers of this pkg

dschrempf commented on 2020-09-20 09:30

This package fails to build and should be amended!

samhh commented on 2020-07-26 11:47

Same error on my machine:

sed: can't read /home/user/.cache/yay/pms-git/pms-git/src/pms/Makefile: No such file or directory