Add debugging to PKGBUILD and bump pkgrel to 4

- Add echo statements to show current directory and cd target
- Add error handling for cd command failure
- Bump pkgrel to 4 to trigger AUR package database update
- This will help identify why cp is copying from wrong directory
This commit is contained in:
goodroot 2025-09-06 15:47:32 -07:00
parent 4a09f4c1d7
commit 7fd34dd002
2 changed files with 14 additions and 2 deletions

View file

@ -1,7 +1,7 @@
pkgbase = hyprwhspr
pkgdesc = Native Whisper speech-to-text for Arch/Omarchy with Waybar integration
pkgver = 1.2.0
pkgrel = 3
pkgrel = 4
url = https://github.com/goodroot/hyprwhspr
install = hyprwhspr.install
arch = x86_64

View file

@ -40,7 +40,19 @@ sha256sums=(
)
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Debug: Show current directory and what we're trying to cd to
echo "Current directory: $(pwd)"
echo "Trying to cd to: ${srcdir}/${pkgname}-${pkgver}"
echo "Source directory exists: $(test -d "${srcdir}/${pkgname}-${pkgver}" && echo "YES" || echo "NO")"
cd "${srcdir}/${pkgname}-${pkgver}" || {
echo "ERROR: Failed to change to source directory: ${srcdir}/${pkgname}-${pkgver}"
echo "Current directory: $(pwd)"
exit 1
}
echo "After cd, current directory: $(pwd)"
echo "Contents of current directory: $(ls -la)"
# Create installation directory
install -dm755 "${pkgdir}/opt/${pkgname}"