42 lines
1.4 KiB
Bash
42 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"
|
||
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||
|
|
||
|
#---- license gpg-key sha256sums ----
|
||
|
|
||
|
sha256sums=(a)
|
||
|
|
||
|
pkgname=pacman-mirrorlist
|
||
|
pkgver=20220227
|
||
|
pkgrel=01
|
||
|
pkgdesc="Arch Linux mirror list for use by pacman HTTPS ONLY"
|
||
|
arch=('any')
|
||
|
url="https://www.archlinux.org/mirrorlist/"
|
||
|
license=('GPL')
|
||
|
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"
|
||
|
}
|
||
|
|
||
|
md5sums=(4d128b619e8a091c03bf4d9afc98ce82)
|
||
|
sha256sums=(09192974301b9bc282a39be1a0e5f5abbb24724e11d18a7fe0737f07b198e12d) # mirrorlist
|