summaryrefslogtreecommitdiff
path: root/pacman-mirrorlist32-ewe/PKGBUILD
blob: 0fd89955c7b38fcc0ea4d711d66042e062c15cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $Id$
# Contributor: Dan McGee <dan@archlinux.org>
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname=pacman-mirrorlist32-ewe
pkgver=20200801
provides=("pacman-mirrorlist32=${pkgver}")
conflicts=('pacman-mirrorlist32')
pkgrel=1
pkgdesc="Arch Linux 32 mirror list for use by pacman - ewe's favourites"
arch=('any')
url="https://www.archlinux.org/mirrorlist/"
license=('GPL')
backup=(etc/pacman.d/mirrorlist32)
source=("https://arch.eckner.net/merged/releng/os/x86_64/${pkgname%-ewe}-${pkgver}-${pkgrel%%.*}-any.pkg.tar.zst")
sha512sums=('c635ceca6caf4e002712c02158a5d1b3bad2e5b35aafa12d44ca268888aa8b3d398fb9fb69a038d3cc7efbc3b17a9939dad95e6a0ba0f8388a63aa930c5145b0')

build() {
  sed -i '
    0,/^$/ {
      /^$/ i Server = https://arch.eckner.net/merged/$repo/os/$arch
    }
  ' 'etc/pacman.d/mirrorlist32'
}

package() {
  mkdir -p "$pkgdir/etc/pacman.d"
  install -m644 'etc/pacman.d/mirrorlist32' "$pkgdir/etc/pacman.d/"
}