Skip to content

Instantly share code, notes, and snippets.

@dontdieych
Created December 30, 2025 19:40
Show Gist options
  • Select an option

  • Save dontdieych/f145425cc7f5eadbc260356ed78bc1fd to your computer and use it in GitHub Desktop.

Select an option

Save dontdieych/f145425cc7f5eadbc260356ed78bc1fd to your computer and use it in GitHub Desktop.
Fix AUR crush-bin pkg aarch64 build error
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment