Package Details: aqua-bin 2.53.2-1

Git Clone URL: https://aur.archlinux.org/aqua-bin.git (read-only, click to copy)
Package Base: aqua-bin
Description: Declarative CLI version manager
Upstream URL: https://github.com/aquaproj/aqua
Keywords: manager version
Licenses: MIT
Conflicts: aqua
Provides: aqua
Submitter: bsergik
Maintainer: Dominiquini
Last Packager: Dominiquini
Votes: 1
Popularity: 0.034066
First Submitted: 2024-08-09 08:59 (UTC)
Last Updated: 2025-06-12 12:20 (UTC)

Latest Comments

h-michael commented on 2025-05-06 16:37 (UTC) (edited on 2025-05-06 16:44 (UTC) by h-michael)

Thank you for maintaining this package.

It looks like the current PKGBUILD assumes that the ${_pkgname} binary is already available in $PATH during the build() phase.

This works for users who already have the binary installed system-wide (e.g., when upgrading), because their $PATH contains the previously installed version. However, for clean builds in a minimal environment, this results in a "command not found" error.

To fix this and ensure the correct binary is used, it is necessary to invoke the locally built binary directly via ./${_pkgname}. Otherwise, the build will fail on systems without the binary already installed.

Here's a patch to fix this issue:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,7 +33,7 @@
 build() {
     gzip "man/man.1"
     mkdir -p completions
-    "${_pkgname}" completion bash > "completions/fish"
-    "${_pkgname}" completion bash > "completions/bash"
-    "${_pkgname}" completion bash > "completions/zsh"
+    "./${_pkgname}" completion fish > "completions/fish"
+    "./${_pkgname}" completion bash > "completions/bash"
+    "./${_pkgname}" completion zsh > "completions/zsh"
 }