diff --git a/build.sh b/build.sh index f310433..0c4f553 100755 --- a/build.sh +++ b/build.sh @@ -5,15 +5,6 @@ build() { - local upd=$1 - - if grep -c 'git+' PKGBUILD >/dev/null && ! grep -c '#tag=' PKGBUILD >/dev/null; then - makepkg --nodeps --nobuild --skippgpcheck --noconfirm - makepkg --printsrcinfo >.SRCINFO - if [[ "${upd}" = true ]]; then - update_pkg - fi - 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 ' ') @@ -57,8 +48,8 @@ for d in */; do update_github_tag "${repo}" fi fi - build true update_pkg + build fi cd .. done @@ -66,7 +57,7 @@ done while read -r p; do git clone https://aur.archlinux.org/"${p}".git || continue cd "${p}" || continue - build false + build cd .. done