Package Details: gomuks-git 0.r485-1

Git Clone URL: https://aur.archlinux.org/gomuks-git.git (read-only, click to copy)
Package Base: gomuks-git
Description: A terminal based Matrix client written in Go
Upstream URL: https://github.com/tulir/gomuks
Keywords: client matrix
Licenses: GPL3
Conflicts: gomuks
Provides: gomuks
Submitter: aperez
Maintainer: aperez
Last Packager: aperez
Votes: 4
Popularity: 0.000000
First Submitted: 2018-06-20 21:25 (UTC)
Last Updated: 2020-05-08 06:52 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

marcool04 commented on 2025-08-25 15:53 (UTC) (edited on 2025-08-25 16:44 (UTC) by marcool04)

Was not building on my machine. After taking a look at the new build script[1] for gomuks-web (which is just the head of the github repo now, but doesn't have a release yet), this works for me in a clean chroot:

diff --git a/PKGBUILD b/PKGBUILD
index 6b2c0b1..bb1bd43 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,50 @@
 # Maintainer: Adrian Perez de Castro <aperez@igalia.com>
 pkgname=gomuks-git
 pkgdesc='A terminal based Matrix client written in Go'
-pkgver=0.r485
+pkgver=r1699.9dc7da3
 pkgrel=1
 url='https://github.com/tulir/gomuks'
-license=(GPL3)
+license=(GPL-3.0-or-later)
 arch=(x86_64 i686)
-depends=(libolm)
-makedepends=(go-pie git)
+depends=(
+   gcc-libs
+   glibc
+   libolm
+)
+makedepends=(
+   git
+   go
+   go-pie
+   npm
+)
 provides=("${pkgname%-git}")
 conflicts=("${provides[@]}")
 source=("${pkgname}::git+${url}")
-sha512sums=(SKIP)
+sha512sums=('SKIP')

-pkgver () {
-   cd "${pkgname}"
-    echo "0.r$(git rev-list --count HEAD)"
+pkgver() {
+   cd "${srcdir}/$pkgname"
+    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
 }

 build () {
-   cd "${pkgname}"
-   local curdir=$(pwd)
-   go build -v \
-       -gcflags "all=-trimpath=${curdir}" \
-       -asmflags "all=-trimpath=${curdir}" \
-       -ldflags "-extldflags '${LDFLAGS}'" \
-       .
+   cd "${srcdir}/$pkgname"
+   _git_commit="$(git rev-parse HEAD)"
+   _build_time="$(date -Iseconds)"
+   go generate ./web
+   export MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | head -n1 | awk '{ print $2 }')
+   export CGO_CPPFLAGS="${CPPFLAGS}"
+   export CGO_CFLAGS="${CFLAGS}"
+   export CGO_CXXFLAGS="${CXXFLAGS}"
+   export CGO_LDFLAGS="${LDFLAGS}"
+   export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+   go build \
+       -ldflags "-X go.mau.fi/gomuks/version.Commit=$_git_commit -X go.mau.fi/gomuks/version.BuildTime=$_build_time -X maunium.net/go/mautrix.GoModVersion=$MAUTRIX_VERSION" \
+       ./cmd/gomuks
 }

 package () {
-   cd "${pkgname}"
+   cd "${srcdir}/$pkgname"
    install -Dm755 gomuks "${pkgdir}/usr/bin/gomuks"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
 }

[1] https://github.com/gomuks/gomuks/blob/main/build.sh

EDIT: although this builds and runs ok, loading the page in the browser fails with an error I've reported upstream https://github.com/gomuks/gomuks/issues/650

wvffle commented on 2020-11-08 15:15 (UTC)

xsel or xclip should be in the package dependencies for the clipboard to work in xserver.

aperez commented on 2020-05-11 07:20 (UTC)

Indeed, having a separate gomuks package which uses releases instead of a Git checkout sounds like the way to go. Thanks for the heads up @juliannu!

ejiek commented on 2020-05-11 03:28 (UTC)

@julianuu not for this package, this one in -git. It's definitely a good call for creating regular gomuks package, thanks!

julianuu commented on 2020-05-10 19:11 (UTC)

Gomuks has realeses now https://github.com/tulir/gomuks/releases. Should they be used instead of the master branch?

Danacus commented on 2020-05-08 05:58 (UTC)

libolm should be added as a dependency.

aperez commented on 2019-05-17 08:17 (UTC)

@alephan: Thanks a lot for the hint! I have added your command in the prepare() function of the PKGBUILD.

agherzan commented on 2019-05-13 16:26 (UTC)

You can fix the error I'm reporting below with:

go mod edit -replace=gopkg.in/russross/blackfriday.v2@v2.0.1=github.com/russross/blackfriday/v2@v2.0.1

agherzan commented on 2019-05-13 13:29 (UTC)

It fails for me:

go: gopkg.in/russross/blackfriday.v2@v2.0.1: go.mod has non-....v2 module path "github.com/russross/blackfriday/v2" at revision v2.0.1
go: error loading module requirements

soundtoxin commented on 2019-01-16 07:33 (UTC) (edited on 2019-01-16 07:36 (UTC) by soundtoxin)

I seem to be having trouble updating.

==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version: 
:: Unable to build gomuks-git - makepkg exited with code: 12