summaryrefslogtreecommitdiffstats
path: root/upgpkg
diff options
context:
space:
mode:
Diffstat (limited to 'upgpkg')
-rwxr-xr-xupgpkg1
1 files changed, 1 insertions, 0 deletions
diff --git a/upgpkg b/upgpkg
index 8d00984..df3dac9 100755
--- a/upgpkg
+++ b/upgpkg
@@ -102,6 +102,7 @@ fi
sed -i "s/pkgver=.*$/pkgver=$1/g" PKGBUILD
sed -i "s/pkgrel=.*$/pkgrel=1/g" PKGBUILD
+makepkg -g
awk <PKGBUILD '$0 ~ /^(md5|sha[0-9]+)sums/ {i = 1; if(!run==1) {system("makepkg -g 2>/dev/null")}; run=1; }; !i {print}; $0 ~ /\)/ {i = 0}' | sponge PKGBUILD
source PKGBUILD