summaryrefslogtreecommitdiff
path: root/libre/pacman-mirrorlist/PKGBUILD
blob: 943f29d7190face3ca609af373f792a02e591cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer (Arch): Dan McGee <dan@archlinux.org>
# Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Esteban Carnevale <alfplayer@mailoo.org>

pkgname=pacman-mirrorlist
pkgver=$(LC_ALL=C date -u +%Y%m%d)
pkgrel=1.par1
pkgdesc="Parabola GNU/Linux-libre mirror list for use by pacman"
arch=('any')
url="https://repo.parabola.nu/mirrorlist.txt"
license=('GPL')
groups=('base' 'base-openrc')
backup=(etc/pacman.d/mirrorlist)
source=(mirrorlist-${pkgver}.txt::${url})
sha256sums=('0f7d7ae3f655deb41813094a608a7e3402d36f7339f0ac951b05361e557ccb3d')
conflicts=(pacman-mirrorlist-libre pacman-mirrorlist-parabola)
replaces=(pacman-mirrorlist-libre pacman-mirrorlist-parabola)

package() {
  mkdir -p $pkgdir/etc/pacman.d
  install -m644 $srcdir/mirrorlist-${pkgver}.txt $pkgdir/etc/pacman.d/mirrorlist
}