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