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 ' ')