Add -f for makepkg
Comment on Discussion When sdist/arch/ Changes / comment_on_discussion (push) Has been cancelled

This commit is contained in:
clsty
2025-10-19 16:15:32 +08:00
parent 85278ea147
commit d0607c789f
+2 -1
View File
@@ -67,9 +67,10 @@ install-local-pkgbuild() {
# man makepkg:
# -A, --ignorearch: Ignore a missing or incomplete arch field in the build script.
# -s, --syncdeps: Install missing dependencies using pacman. When build-time or run-time dependencies are not found, pacman will try to resolve them.
# -f, --force: build a package even if it already exists in the PKGDEST
# -i, --install: Install or upgrade the package after a successful build using pacman(8).
# In https://github.com/end-4/dots-hyprland/issues/823#issuecomment-3394774645 it's suggested to use `sudo pacman -U --noconfirm *.pkg.tar.zst` instead of `makepkg -i`, however it's possible that multiple *.pkg.tar.zst exist, which makes this command not reliable.
x makepkg -Asi --noconfirm
x makepkg -Afsi --noconfirm
x popd
}