diff --git a/build.sh b/build.sh index 5c88856..365a166 100755 --- a/build.sh +++ b/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/