summaryrefslogtreecommitdiff
path: root/pacman-mirrorlist32/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-11 20:34:15 +0200
committerErich Eckner <git@eckner.net>2018-07-11 20:34:15 +0200
commite625778351aeb0dd89fd72fed06e289784aafa62 (patch)
treef48ea266337953474698d359ea0bac7f2b5f7d7e /pacman-mirrorlist32/PKGBUILD
parente2f19f96654dd2ffc6e2d1c9232976ecc6928fb6 (diff)
downloadarchlinuxewe.git.save-e625778351aeb0dd89fd72fed06e289784aafa62.tar.xz
pacman-mirrorlist32: 20180708 -> 20180710 (und PKGBUILD repariert)
Diffstat (limited to 'pacman-mirrorlist32/PKGBUILD')
-rw-r--r--pacman-mirrorlist32/PKGBUILD19
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
}