jobcore/pacman-mirrorlist/PKGBUILD-arch

30 lines
790 B
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: Dan McGee <dan@archlinux.org>
pkgname=pacman-mirrorlist
2024-07-18 14:30:58 +02:00
pkgver=20240717
2022-03-20 13:19:37 +01:00
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=(mirrorlist)
2024-07-18 14:30:58 +02:00
md5sums=('b275439b1695e2f7db9c251554d6cd0f')
sha256sums=('a62f64c8e6e87a55f939475a5d3fa3f73b78c15cf6e1e135c21c08eb3e5ba294')
2022-03-20 13:19:37 +01:00
# NOTE on building this package:
# * Run bash -c ". PKGBUILD; updatelist"
# * Update the checksums, update pkgver
# * Build the package
updatelist() {
rm -f mirrorlist
curl -o mirrorlist https://archlinux.org/mirrorlist/all/
}
package() {
mkdir -p "$pkgdir/etc/pacman.d"
2024-07-18 14:30:58 +02:00
install -m0644 "$srcdir/mirrorlist" "$pkgdir/etc/pacman.d/"
2022-03-20 13:19:37 +01:00
}