JoaKing (JoacoG) opened
I'm using WSL with archlinux distro. I tried to install git bug using yay. I got this error...
install: cannot stat '/home/joaquin/.cache/yay/git-bug-bin/src/git-bug-0.8.1/misc/bash_completion/*': No such file or directory
In the git bug page in AUR there is a proposed fix in the comments section
From cb981b702abf01e383c37b44a873eaaf2df498c9 Mon Sep 17 00:00:00 2001
From: Aki <please@ignore.pl>
Date: Sun, 24 Mar 2024 17:49:33 +0100
Subject: [PATCH] Install completion scripts from the new directory
---
.SRCINFO | 2 +-
PKGBUILD | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 15850b7..67f6732 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = git-bug-bin
pkgdesc = Distributed bug tracker embedded in Git
pkgver = 0.8.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/MichaelMure/git-bug
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index e99af1c..a6b6d22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
_pkgname=git-bug
pkgname=git-bug-bin
pkgver=0.8.0
-pkgrel=1
+pkgrel=2
pkgdesc="Distributed bug tracker embedded in Git"
arch=('x86_64' 'i686' 'arm')
url='https://github.com/MichaelMure/git-bug'
@@ -28,8 +28,8 @@ package() {
install -Dm755 "${!_source_bin##*/}" "$pkgdir/usr/bin/$_pkgname"
# Shell completion
- install -Dm644 -t "$pkgdir/usr/share/bash-completion/completions/" "$srcdir/$_pkgname-$pkgver/misc/bash_completion/"*
- install -Dm644 -t "$pkgdir/usr/share/zsh/site-functions/" "$srcdir/$_pkgname-$pkgver/misc/zsh_completion/"*
+ install -Dm644 -t "$pkgdir/usr/share/bash-completion/completions/" "$srcdir/$_pkgname-$pkgver/misc/completion/bash/"*
+ install -Dm644 -t "$pkgdir/usr/share/zsh/site-functions/" "$srcdir/$_pkgname-$pkgver/misc/completion/zsh/"*
# Fixup zsh completion
mv "$pkgdir/usr/share/zsh/site-functions/$_pkgname" "$pkgdir/usr/share/zsh/site-functions/_$_pkgname"
--
2.44.0
Another related problem is that the package version in AUR didn't sync automatically after the update 0.9.0 in the repo. Couldn't this be made automatically?