jobcore/pacman-mirrorlist/PKGBUILD

44 lines
1.5 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pacman-mirrorlist
2022-12-06 17:13:57 +01:00
pkgver=20221204
2022-03-20 13:19:37 +01:00
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"
}
2022-05-01 23:31:49 +02:00
#---- license gpg-key sha256sums ----
license=('GPL')
2022-12-06 17:13:57 +01:00
sha256sums=(08362bba956e2bf029325941d64ca240c52359e75c3dc06593ab14e4b602a836) # mirrorlist
2022-06-06 01:59:21 +02:00
2022-12-06 17:13:57 +01:00
## ce7574d498f8300326b10ef310c65c82729b5aa8e4d93eff6b9e2cbcb1cf9731 pacman-mirrorlist-20221204-01-any.pkg.tar.xz