From e625778351aeb0dd89fd72fed06e289784aafa62 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 11 Jul 2018 20:34:15 +0200 Subject: pacman-mirrorlist32: 20180708 -> 20180710 (und PKGBUILD repariert) --- pacman-mirrorlist32/PKGBUILD | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pacman-mirrorlist32/PKGBUILD b/pacman-mirrorlist32/PKGBUILD index 4ea9a738d..0d8c4cba8 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 } -- cgit v1.2.3-70-g09d2