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
+6 -9
View File
@@ -10,7 +10,7 @@ if [ $# -ne 1 ]; then
fi
VERSION=$1
AUR_DIR="../hyprvoice-bin"
AUR_DIR="../../hyprvoice-bin"
echo "🚀 Updating AUR package for version $VERSION..."
echo ""
@@ -45,6 +45,10 @@ if ! updpkgsums; then
exit 1
fi
# Stage changes in main repo
echo "📝 Staging PKGBUILD changes in main repository..."
git -C .. add packaging/PKGBUILD
# Copy files to AUR repo
echo "📋 Copying files to AUR repository..."
cp PKGBUILD "$AUR_DIR/"
@@ -58,13 +62,6 @@ cd "$AUR_DIR"
echo "📄 Generating .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 ""
@@ -94,4 +91,4 @@ else
fi
echo ""
echo "✅ AUR update complete!"
echo "✅ AUR update complete!"