Package Details: powerline-go 1.24-1

Git Clone URL: https://aur.archlinux.org/powerline-go.git (read-only, click to copy)
Package Base: powerline-go
Description: A beautiful, useful and fast prompt for your shell
Upstream URL: https://github.com/justjanne/powerline-go
Keywords: go powerline
Licenses: GPL3
Submitter: swiftscythe
Maintainer: marco44
Last Packager: marco44
Votes: 6
Popularity: 0.000000
First Submitted: 2018-06-24 10:26 (UTC)
Last Updated: 2023-06-30 15:19 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

ozraru commented on 2024-04-13 05:30 (UTC) (edited on 2024-04-13 05:32 (UTC) by ozraru)

This package can't be built using latest default makepkg.conf
Because there are whitespace in LDFLAGS
https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/commit/0f10f032b02bc7823b3ac11f4807b5515c996821#9817c069c08d6f08baeb3d014d2c1195bcfa2e2a

We have to add "" as ArchWiki do so
https://wiki.archlinux.org/title/Go_package_guidelines#Flags_and_build_options

diff --git a/PKGBUILD b/PKGBUILD
index 0c058f7..ebab8ae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,7 @@ build() {
     go build \
     -trimpath \
     -modcacherw \
-    -ldflags "-extldflags ${LDFLAGS}" \
+    -ldflags "-extldflags \"${LDFLAGS}\"" \
     .
 }

swiftscythe commented on 2023-06-30 14:30 (UTC)

@marco44, feel free to adopt

marco44 commented on 2023-06-30 13:37 (UTC)

It's been out of date for a month. Any problem ?

mstiles92 commented on 2021-05-21 13:37 (UTC)

@swiftscythe great, thanks for the update!

swiftscythe commented on 2021-05-16 11:22 (UTC)

@mstiles92 done, thanks for the suggestion!

tinywrkb commented on 2021-05-13 19:31 (UTC)

The flag can also be added like this export GOFLAGS=-modcacherw.

mstiles92 commented on 2021-05-13 14:59 (UTC)

Could the -modcacherw flag please be added to the go build command in the PKGBUILD?

diff --git a/PKGBUILD b/PKGBUILD
index 118f58e..709c02d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,6 +18,7 @@ build() {
     cd "$pkgname-$pkgver"
     go build \
     -trimpath \
+    -modcacherw \
     -ldflags "-extldflags ${LDFLAGS}" \
     .
 }

Without this flag, makepkg --clean fails due to the directories in the module cache being created as read-only by default.

-modcacherw
leave newly-created directories in the module cache read-write
instead of making them read-only.

hacker1024 commented on 2020-10-04 14:40 (UTC)

This seems to work fine on aarch64, can the architecture be added to the PKGBUILD array?

tinywrkb commented on 2020-05-05 19:12 (UTC)

@swiftscythe, thank you for the update!

tinywrkb commented on 2020-05-01 16:43 (UTC)

Please set GOPATH so go won't try to download into $HOME/go. This is a common practice, see for example gocryptfs's PKGBUILD.

diff --git a/PKGBUILD b/PKGBUILD
index 6e4b218..b734cf9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@ source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha256sums=('d7825168044159dfdd3983519ea26cf8753f24c3d8c0600ce494c4a6db7a015f')

 build() {
+    export GOPATH="${srcdir}"/gopath
     cd "$pkgname-$pkgver"
     go build \
     -trimpath \