manage epoch
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-05-19 12:24:22 +02:00
parent cb4a756643
commit 5442bb2706

View file

@ -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/