This commit is contained in:
parent
cb4a756643
commit
5442bb2706
1 changed files with 5 additions and 1 deletions
6
build.sh
6
build.sh
|
@ -4,8 +4,12 @@ build() {
|
|||
name=$(grep '^pkgname=' PKGBUILD | cut -d'=' -f2)
|
||||
ver=$(grep '^pkgver=' PKGBUILD | cut -d'=' -f2)
|
||||
rel=$(grep '^pkgrel=' PKGBUILD | cut -d'=' -f2)
|
||||
epoch=$(grep '^epoch=' PKGBUILD | cut -d'=' -f2)
|
||||
if [ -n "$epoch" ] ; then
|
||||
epoch=$epoch:
|
||||
fi
|
||||
|
||||
if ! compgen -G "/repo/$name-$ver-$rel-*.pkg.tar.zst" ; then
|
||||
if ! compgen -G "/repo/$name-$epoch$ver-$rel-*.pkg.tar.zst" ; then
|
||||
if makepkg -s --skippgpcheck --noconfirm || makepkg -s --skippgpcheck --nocheck --noconfirm ; then
|
||||
for pkg in *.pkg.tar.zst ; do
|
||||
cp "$pkg" /repo/
|
||||
|
|
Loading…
Add table
Reference in a new issue