fix aur update command

This commit is contained in:
LeonardoTrapani
2025-09-07 22:59:19 +02:00
parent 82b2769b09
commit ef2d1e00f3
3 changed files with 8 additions and 38 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# Maintainer: Leonardo Trapani <leo@trapani.sh> # Maintainer: Leonardo Trapani <leo@trapani.sh>
pkgname=hyprvoice-bin pkgname=hyprvoice-bin
pkgver=0.1.0 pkgver=0.1.1
pkgrel=1 pkgrel=1
pkgdesc="Voice-powered typing for Wayland/Hyprland" pkgdesc="Voice-powered typing for Wayland/Hyprland"
arch=('x86_64') arch=('x86_64')
@@ -25,7 +25,7 @@ source=(
"hyprvoice-${pkgver}::https://github.com/leonardotrapani/hyprvoice/releases/download/${pkgver}/hyprvoice-linux-x86_64" "hyprvoice-${pkgver}::https://github.com/leonardotrapani/hyprvoice/releases/download/${pkgver}/hyprvoice-linux-x86_64"
"hyprvoice.service" "hyprvoice.service"
) )
sha256sums=('fd70a11c48ebe797887f5120108c68bf2d3ecd4416869349c470a99763ddd45a' sha256sums=('576026ab299d39e2062acb1168a3108d215fbb3d1ec80b3beca76f6206d462fe'
'8a9a764753c740a6c76e4173ccfb97b6e984ba52978124e307cebc9d62ed2596') '8a9a764753c740a6c76e4173ccfb97b6e984ba52978124e307cebc9d62ed2596')
install=hyprvoice.install install=hyprvoice.install
+6 -9
View File
@@ -10,7 +10,7 @@ if [ $# -ne 1 ]; then
fi fi
VERSION=$1 VERSION=$1
AUR_DIR="../hyprvoice-bin" AUR_DIR="../../hyprvoice-bin"
echo "🚀 Updating AUR package for version $VERSION..." echo "🚀 Updating AUR package for version $VERSION..."
echo "" echo ""
@@ -45,6 +45,10 @@ if ! updpkgsums; then
exit 1 exit 1
fi fi
# Stage changes in main repo
echo "📝 Staging PKGBUILD changes in main repository..."
git -C .. add packaging/PKGBUILD
# Copy files to AUR repo # Copy files to AUR repo
echo "📋 Copying files to AUR repository..." echo "📋 Copying files to AUR repository..."
cp PKGBUILD "$AUR_DIR/" cp PKGBUILD "$AUR_DIR/"
@@ -58,13 +62,6 @@ cd "$AUR_DIR"
echo "📄 Generating .SRCINFO..." echo "📄 Generating .SRCINFO..."
makepkg --printsrcinfo > .SRCINFO makepkg --printsrcinfo > .SRCINFO
# Test build
echo "🔨 Testing package build..."
if ! makepkg --noextract --nodeps; then
echo "❌ Error: Package build failed."
exit 1
fi
echo "✅ Package build successful!" echo "✅ Package build successful!"
echo "" echo ""
@@ -94,4 +91,4 @@ else
fi fi
echo "" echo ""
echo "✅ AUR update complete!" echo "✅ AUR update complete!"
-27
View File
@@ -1,27 +0,0 @@
#!/bin/bash
# Helper script to update PKGBUILD after a new release
set -e
if [ $# -ne 1 ]; then
echo "Usage: $0 <version>"
echo "Example: $0 0.1.0"
exit 1
fi
VERSION=$1
echo "Updating PKGBUILD for version $VERSION..."
# Update version in PKGBUILD
sed -i "s/pkgver=.*/pkgver=${VERSION}/" PKGBUILD
# Update checksums
echo "Updating checksums..."
updpkgsums
echo "✅ PKGBUILD updated for version $VERSION"
echo ""
echo "Next steps:"
echo "1. Review the changes: git diff"
echo "2. Test the package: makepkg -si"
echo "3. Commit and push to AUR"