Skip to content

Instantly share code, notes, and snippets.

@kode54
Last active January 28, 2024 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kode54/04faba2e7ba3d8c363eac2f96c546380 to your computer and use it in GitHub Desktop.
Save kode54/04faba2e7ba3d8c363eac2f96c546380 to your computer and use it in GitHub Desktop.
bcachefs-tools-git AUR package patch
diff --git a/PKGBUILD b/PKGBUILD
index e76e54c..15d345a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -43,13 +49,13 @@ pkgver() {
build() {
cd "$srcdir/$_reponame"
- make
+ make LIBEXECDIR="/usr/lib/bcachefs-tools"
}
package() {
cd "$srcdir/$_reponame"
- make DESTDIR="$pkgdir" PREFIX="/usr" ROOT_SBINDIR="/usr/bin" INITRAMFS_DIR="/etc/initcpio" install
+ make DESTDIR="$pkgdir" PREFIX="/usr" ROOT_SBINDIR="/usr/bin" INITRAMFS_DIR="/etc/initcpio" LIBEXECDIR="/usr/lib/bcachefs-tools" install
install -Dm644 "arch/etc/initcpio/hooks/bcachefs" \
"$pkgdir/etc/initcpio/hooks/bcachefs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment