Package Details: geteduroam-cli 0.12-1

Git Clone URL: https://aur.archlinux.org/geteduroam-cli.git (read-only, click to copy)
Package Base: geteduroam-cli
Description: A cli to automatically setup eduroam
Upstream URL: https://github.com/geteduroam/linux-app
Licenses: BSD-3-Clause
Submitter: Dario48
Maintainer: Dario48
Last Packager: Dario48
Votes: 0
Popularity: 0.000000
First Submitted: 2025-11-21 10:02 (UTC)
Last Updated: 2025-11-21 10:02 (UTC)

Required by (0)

Sources (1)

Latest Comments

HurricanePootis commented on 2026-01-21 19:07 (UTC)

I have some suggestions to make the package more in line with the Go Package Guidelines.

  1. Download go modules into the src/ of the package and not the home folder of the user
  2. Pass all of the flags from /etc/makepkg.conf/ to go. This is important.
  3. Install the BSD-3-Clause licenses, as it's not a common license.

All of these edits were taken straight from the wiki and confirmed that the fixed the issues reported by namcap.

diff --git a/PKGBUILD b/PKGBUILD
index 5b19e4f..f5b1a73 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,15 +9,30 @@ url="https://github.com/geteduroam/linux-app"
 source=("$_pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
 license=('BSD-3-Clause')
 makedepends=('go>=1.18')
-depends=('networkmanager')
+depends=('networkmanager' 'glibc')
 sha256sums=('25b367d30efa3bba0ca414ff29b80f7e49cf2fa5f252d1e47ee49e59e9db5ff8')

+
+prepare() {
+   cd "$srcdir/linux-app-$pkgver"
+   export GOPATH="${srcdir}"
+   go mod download -modcacherw
+}
+
 build() {
    cd "$srcdir/linux-app-$pkgver"
-   make build-cli
+   export GOPATH="${srcdir}"
+   export CGO_CPPFLAGS="${CPPFLAGS}"
+   export CGO_CFLAGS="${CFLAGS}"
+   export CGO_CXXFLAGS="${CXXFLAGS}"
+   export CGO_LDFLAGS="${LDFLAGS}"
+   export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+
+   go build -o geteduroam-cli ./cmd/geteduroam-cli
 }

 package() {
    cd "$srcdir/linux-app-$pkgver"
-   install -D geteduroam-cli "$pkgdir/usr/bin/geteduroam-cli"
+   install -Dm755 geteduroam-cli "$pkgdir/usr/bin/geteduroam-cli"
+   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
 }