fix: update git package ver before build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
8712c3aeef
commit
d1705756c8
1 changed files with 4 additions and 1 deletions
5
build.sh
5
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 ' ')
|
||||
|
|
Loading…
Add table
Reference in a new issue