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