From 5442bb2706b5fff3f3d444b102b55c1517e7eb4e Mon Sep 17 00:00:00 2001 From: nyyu Date: Wed, 19 May 2021 12:24:22 +0200 Subject: [PATCH] manage epoch --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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/