diff --git a/.util.sh b/.util.sh index 7be19e0..dc10ade 100644 --- a/.util.sh +++ b/.util.sh @@ -13,7 +13,7 @@ update_gitea_tag() { update_pkg() { if [[ $(git diff . | wc -l) -ne 0 ]]; then - sed -i 's/pkgrel=.*/pkgrel=1/' PKGBUILD + sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD if updpkgsums; then makepkg --printsrcinfo >.SRCINFO diff --git a/build.sh b/build.sh index c139187..bf43072 100755 --- a/build.sh +++ b/build.sh @@ -21,6 +21,15 @@ build() { epoch=${epoch}: fi + # TMP: fix wrong pkgrel cs-firewall-bouncer + if [[ "$name" == "cs-firewall-bouncer" ]]; then + relpkg=$(grep -E '^pkgrel' PKGBUILD | cut -d'=' -f2 | tr -d ' ') + if [[ "$rel" != "$pkgrel" ]]; then + rel=1 + sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD + fi + fi + if pacman -Si "${name}" 2>/dev/null | grep -v nyyu | grep -c -E '^Repository' &>/dev/null; then echo "WARN: Found ${name} in arch repo" fi