jobcore/pacman-mirrorlist/PKGBUILD

35 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pacman-mirrorlist
pkgver=20231001
pkgrel=01
pkgdesc="Arch Linux mirror list for use by pacman HTTPS ONLY"
url="https://www.archlinux.org/mirrorlist/"
backup=(etc/pacman.d/mirrorlist)
source=(mirrorlist::https://gitlab.archlinux.org/archlinux/packaging/packages/pacman-mirrorlist/-/raw/main/mirrorlist
select)
package() {
mkdir -p "$pkgdir/etc/pacman.d"
# this removes all the non-https mirrorsites out of the list leaving only the ones with https
cat select >> mirrorlist-https
grep -v "http:" mirrorlist >> mirrorlist-https
install -m644 "$srcdir/mirrorlist-https" "$pkgdir/etc/pacman.d/mirrorlist"
install -m644 "$srcdir/mirrorlist" "$pkgdir/etc/pacman.d/mirrorlist-arch"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
sha256sums=(b8fdb9f50197fd95f71b680b4e25dae6c69101a827c3f44a0b77bc01ac970bab # mirrorlist
SKIP) # select
## 7ccefc8c2a9102ef2b8d0ed85a71fbac5e39766a6f7a4b716742f29218f37c7a pacman-mirrorlist-20231001-01-x86_64.pkg.tar.lz