summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNoor Christensen2025-02-09 19:17:01 +0100
committerNoor Christensen2025-02-09 19:17:01 +0100
commit57a9f4fb6405e9aa97b3f9503599e3aba47e4f0a (patch)
tree2279670efae42b16710f5c2ed7a5fe165642977a /PKGBUILD
parent6974751ff63211180945f75104df0f580e5c54b2 (diff)
downloadaur-tut-mastodon.tar.gz
fix: ensure to escape LDFLAGS when passing to external linker
The build seems to fail due to /etc/makepkg.conf setting the LDFLAGS evironment variable to a value with spaces in it. It was introduced with the following commit: https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/commit/0f10f032b02bc7823b3ac11f4807b5515c996821 The PKGBUILD for the tut package uses LDFLAGS variable to pass flags to the external linker during the build, but does not properly escape it. This commit fixes that, and adds myself to the list of current maintainers of this package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 377738eb3eb9..a879c8beba96 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
+# Maintainer: Noor Christensen <archlinux_AT_technopragmatics_DOT_org>
# Maintainer: Rasmus Lindroth <rasmus@lindroth.xyz>
_pkgname=tut
pkgname=tut-mastodon
pkgver=2.0.1
-pkgrel=1
+pkgrel=2
pkgdesc='A TUI for Mastodon with vim inspired keys. Same as aur/tut, only for name collision.'
arch=('any')
url="https://github.com/RasmusLindroth/$_pkgname"
@@ -14,9 +15,8 @@ sha256sums=('afa8c49036461a36c091d83ef51f9a3bbd938ee78f817c6467175699a989b863')
build() {
cd $_pkgname-$pkgver
go build \
- -gcflags "all=-trimpath=$PWD" \
- -asmflags "all=-trimpath=$PWD" \
- -ldflags "-extldflags $LDFLAGS" \
+ -trimpath \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
-o $pkgname .
}