Frederik Schwan pushed to branch main at Arch Linux / Packaging / Packages /
bcachefs-tools
Commits:
b3ed040c by Frederik Schwan at 2023-12-06T22:52:38+01:00
add shell completions
implements #1
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = bcachefs-tools
pkgdesc = BCacheFS filesystem utilities
pkgver = 1.3.5
- pkgrel = 1
+ pkgrel = 2
epoch = 3
url = https://bcachefs.org/
arch = x86_64
=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
pkgname=bcachefs-tools
epoch=3
pkgver=1.3.5
-pkgrel=1
+pkgrel=2
pkgdesc='BCacheFS filesystem utilities'
arch=('x86_64')
url='https://bcachefs.org/'
@@ -42,8 +42,14 @@ build() {
package() {
cd ${pkgname}-${pkgver}
- make DESTDIR="$pkgdir" PREFIX="/usr" ROOT_SBINDIR="/usr/bin" \
+ make DESTDIR="${pkgdir}" PREFIX="/usr" ROOT_SBINDIR="/usr/bin" \
INITRAMFS_DIR="/etc/initcpio" install
# remove initcpio hooks that seems incompatible with mkinitcpio
rm -rf "${pkgdir}"/etc
+
+ # package completions
+ install -dm644
"${pkgdir}"/usr/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
+ "${pkgdir}"/usr/bin/bcachefs completions bash >
"${pkgdir}"/usr/share/bash-completion/completions/bcachefs
+ "${pkgdir}"/usr/bin/bcachefs completions fish >
"${pkgdir}"/usr/share/fish/vendor_completions.d/bcachefs.fish
+ "${pkgdir}"/usr/bin/bcachefs completions zsh >
"${pkgdir}"/usr/share/zsh/site-functions/_bcachefs
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/bcachefs-tools/-/commit/b3ed040c4e90ad447d70336baea2ce84adbf1dc9
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/bcachefs-tools/-/commit/b3ed040c4e90ad447d70336baea2ce84adbf1dc9
You're receiving this email because of your account on gitlab.archlinux.org.