jobcore/pacman-mirrorlist/PKGBUILD

39 lines
1.4 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=20240717
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 -m0644 "$srcdir/mirrorlist-https" "$pkgdir/etc/pacman.d/mirrorlist"
install -m0644 "$srcdir/mirrorlist" "$pkgdir/etc/pacman.d/mirrorlist-arch"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
md5sums=('b275439b1695e2f7db9c251554d6cd0f'
'354dfe9688c285fee3e8116d36986cb3')
sha256sums=(a62f64c8e6e87a55f939475a5d3fa3f73b78c15cf6e1e135c21c08eb3e5ba294 # mirrorlist
b85b6bcaf9abc8df430bee922007ca118723c957ba174c1c9074c1a424ec981e) # select
## 1c5df220fcf511a8760aaeee8d9b41f3eaf327deacd9f7a29a343ffa6789233e pacman-mirrorlist-20240717-01-x86_64.pkg.tar.lz