From d1705756c88c9658156b9d3b99a85944cde53540 Mon Sep 17 00:00:00 2001 From: nyyu Date: Wed, 22 Mar 2023 08:49:51 +0100 Subject: [PATCH] fix: update git package ver before build --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1a15fc8..e7a6183 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,10 @@ . .util.sh build() { - + if grep -c 'git+' PKGBUILD >/dev/null && ! grep -c '#tag=' PKGBUILD >/dev/null; then + makepkg --noprepare --nodeps --nobuild --skippgpcheck --noconfirm + makepkg --printsrcinfo >.SRCINFO + fi name=$(grep -m1 'pkgname' .SRCINFO | cut -d'=' -f2 | tr -d ' ') ver=$(grep 'pkgver' .SRCINFO | cut -d'=' -f2 | tr -d ' ') rel=$(grep 'pkgrel' .SRCINFO | cut -d'=' -f2 | tr -d ' ')