36 lines
1.3 KiB
Bash
36 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=20230820
|
|
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=(dc63e1f1d117f15df233e4d67d808ec50b21831be1f51d3adc0015ea527a4b6c # mirrorlist
|
|
SKIP) # select
|
|
|
|
## 143fcb6256fea92ab2fd89a2c0c5bc4505bafce8e928f17627d3c0657286933f pacman-mirrorlist-20230820-01-x86_64.pkg.tar.lz
|