fix: clean build
This commit is contained in:
parent
ef8583a618
commit
b2e492ac7b
1 changed files with 2 additions and 11 deletions
13
build.sh
13
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 <aur.txt
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue