diff options
Diffstat (limited to 'pacman-mirrorlist32/PKGBUILD')
-rw-r--r-- | pacman-mirrorlist32/PKGBUILD | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pacman-mirrorlist32/PKGBUILD b/pacman-mirrorlist32/PKGBUILD index 4ea9a738..0d8c4cba 100644 --- a/pacman-mirrorlist32/PKGBUILD +++ b/pacman-mirrorlist32/PKGBUILD @@ -3,7 +3,7 @@ # repo: releng pkgname=pacman-mirrorlist32 -pkgver=20180708 +pkgver=20180710 pkgrel=1 pkgdesc=$(printf '%s' 'Arch Linux mirror list for use by pacman for i68' '6 packages on an x86' '_64 host') arch=('any') @@ -14,9 +14,20 @@ source=(archlinux32-packages::git+https://git.archlinux32.org/archlinux32/packag sha512sums=('SKIP') pkgver() { - git -C "$srcdir/archlinux32-packages" archive HEAD -- 'core/pacman-mirrorlist/PKGBUILD' | \ - tar -Ox | \ - grep '^pkgver=' | \ + { + git -C "$srcdir/archlinux32-packages" archive HEAD -- 'core/pacman-mirrorlist/PKGBUILD' | \ + tar -Ox | \ + grep '^pkgver=' || \ + { + pacman -Ss '^pacman-mirrorlist$' | \ + sed -n ' + s,^core/pacman-mirrorlist ,, + T + s/-.*$// + p + ' + } + } | \ cut -d= -f2 } |