41 lines
1.4 KiB
Bash
41 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=20220828
|
|
pkgrel=01
|
|
pkgdesc="Arch Linux mirror list for use by pacman HTTPS ONLY"
|
|
arch=('any')
|
|
url="https://www.archlinux.org/mirrorlist/"
|
|
backup=(etc/pacman.d/mirrorlist)
|
|
#source=(mirrorlist)
|
|
source=(https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/pacman-mirrorlist/trunk/mirrorlist)
|
|
# NOTE on building this package:
|
|
# * Go to the trunk/ directory
|
|
# * Run bash -c ". PKGBUILD; updatelist"
|
|
# * Update the checksums, update pkgver
|
|
# * Build the package
|
|
## Jobo: Or replace the local source with the latest in trunk :P
|
|
|
|
updatelist() {
|
|
rm -f mirrorlist
|
|
curl -o mirrorlist https://archlinux.org/mirrorlist/all/
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir/etc/pacman.d"
|
|
# this removes all the non-https mirrorsites out of the list leaving only the ones with https
|
|
grep -v "http:" mirrorlist > mirrorlist-https
|
|
install -m644 "$srcdir/mirrorlist-https" "$pkgdir/etc/pacman.d/mirrorlist"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('GPL')
|
|
|
|
sha256sums=(586425be2572b3a06abe579bd4d091f551f28b6ef1b0e4a6b98fd2d18763150d) # mirrorlist
|
|
|