# $Id$ # Contributor: Dan McGee # Maintainer: Erich Eckner pkgname=pacman-mirrorlist pkgver=20160511 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=('53e8fe86ee2be3febd1fec898bddf3af08e6392e8663b78a63b9d65dacf6b0fab5ae5229e3979803f78f4d0dade14e661a589b1690e1de6afcdd811f05d3997c') 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/ }