Package Details: crush-bin 0.69.1-1

Git Clone URL: https://aur.archlinux.org/crush-bin.git (read-only, click to copy)
Package Base: crush-bin
Description: A powerful terminal-based AI assistant for developers, providing intelligent coding assistance directly in your terminal.
Upstream URL: https://charm.sh/crush
Licenses: FSL-1.1-MIT
Conflicts: crush
Provides: crush
Submitter: caarlos0
Maintainer: caarlos0
Last Packager: caarlos0
Votes: 3
Popularity: 0.085446
First Submitted: 2025-07-07 14:15 (UTC)
Last Updated: 2026-05-15 20:32 (UTC)

Latest Comments

dontdieych commented on 2025-12-31 07:35 (UTC)

It might work, but it doesn't seem like a good approach. I just copied what other packages do, which is usually handling the architecture specific part with a case statement.

caarlos0 commented on 2025-12-31 04:58 (UTC)

good catch! I wonder if we can cd "${srcdir}/"crush_* instead? It should only have one dir anyway I think

dontdieych commented on 2025-12-30 19:48 (UTC)

Fixed aarch64 build error.

Downloaded src file name has 'arm64' but $CARCH variable is 'aarch64'. So cd ... command failed in package() function. Other CARCHs are looks OK.

Output of git diff, (gist link: https://gist.github.com/dontdieych/f145425cc7f5eadbc260356ed78bc1fd)

diff --git a/PKGBUILD b/PKGBUILD
index 5983135..1daf3b7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,7 +25,15 @@ source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/charmbrac
 sha256sums_x86_64=('8497f7ed533e93ec27d478afeca33e1157faafb83c37ea2d5dbdaa2dee9abd1d')

 package() {
-  cd "${srcdir}/crush_${pkgver}_Linux_${CARCH}"
+  case "$CARCH" in
+    aarch64)
+      cd "${srcdir}/crush_${pkgver}_Linux_arm64"
+      ;;
+    *)
+      cd "${srcdir}/crush_${pkgver}_Linux_${CARCH}"
+      ;;
+  esac
+
   # bin
   install -Dm755 "./crush" "${pkgdir}/usr/bin/crush"
   # license

caarlos0 commented on 2025-11-03 17:00 (UTC) (edited on 2025-11-03 17:12 (UTC) by caarlos0)

@i8u PKGBUILD is auto generated by GoReleaser, will see if I can make this improvement in there instead.

In advance, probably not the base url thing, but using ${pkgver} in the url seems easy enough to accomplish.

EDIT: there you go https://github.com/goreleaser/goreleaser/pull/6231

i8u commented on 2025-11-03 15:57 (UTC)

Could you please simplify the PKGBUILD by storing the url in a variable...this makes it easier to update for you and easier to grok the diffs for us.

_base_url="https://github.com/charmbracelet/crush/releases/download/v${pkgver}/crush_${pkgver}_Linux_"

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::${_base_url}arm64.tar.gz")
sha256sums_aarch64=('3cb3a99bdde8c5e995d89f24251d2d98bc261d36f19a6868f04a4897192ac832')

source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::${_base_url}armv7.tar.gz")
sha256sums_armv7h=('1dc38c8360884f7483c9f85de53924f3201cb51cc1b4eeaf6c0ccaf64825059e')

ArKay commented on 2025-10-26 10:48 (UTC)

Yup, been also getting this error for the last 3 days or so.

/home/arkay/.cache/yay/crush-bin/PKGBUILD: line 28: cd: /home/arkay/.cache/yay/crush-bin/src/crush_0.13.0_Linux_x86_64: No such file or directory

quest commented on 2025-10-23 20:21 (UTC)

Busted.

/home/quest/.cache/yay/crush-bin/PKGBUILD: line 28: cd: /home/quest/.cache/yay/crush-bin/src/crush_0.13.0_Linux_x86_64: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: crush-bin-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
crush-bin - exit status 4

caarlos0 commented on 2025-07-08 00:46 (UTC)

it's a new project we're going to release soon (couple of weeks I think), just wanted to lock in the name to avoid confusion later.

m040601 commented on 2025-07-08 00:42 (UTC)

  Description:   TODO

???