# $Id$ # Contributor: Dan McGee # Maintainer: Erich Eckner pkgname=pacman-mirrorlist pkgver=20170628 pkgrel=1 pkgdesc="Arch Linux mirror list for use by pacman" arch=('any') url="https://www.archlinux.org/mirrorlist/" license=('GPL') backup=(etc/pacman.d/mirrorlist) source=("${pkgname}-${pkgver}-${pkgrel}-any-original.tar.xz::https://arch.eckner.net/core/os/$(uname -m)/${pkgname}-${pkgver}-${pkgrel}-any.pkg.tar.xz") sha512sums=('103fed5b93cd8faef5776a61df476fc499e216b7abcc59acc376fe68d7ec7b4f9c8684599994353a1559736cdd9cff910d07c35eb8fb3ab1bf47db43aa429e5a') build() { cat etc/pacman.d/mirrorlist | \ ( while read s do echo "${s}" if [ -z "${s}" ] then echo 'Server = https://arch.eckner.net/$repo/os/$arch' echo '' break fi done cat ) \ > mirrorlist } package() { mkdir -p $pkgdir/etc/pacman.d install -m644 mirrorlist $pkgdir/etc/pacman.d/ }