45 lines
1.5 KiB
Bash
45 lines
1.5 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=20230226
|
|
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)
|
|
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"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=('any')
|
|
|
|
license=('GPL')
|
|
|
|
sha256sums=(aaa43f97adf0e0a5bbf8f2668237aa1d7aa35fd6e99d639602aabde09756c392) # mirrorlist
|
|
|
|
## 5db9c32f7376cd4e0f86dac19d1fce1177d8043ccad6d19024a4b5c8c3bbae1f pacman-mirrorlist-20230226-01-any.pkg.tar.lz
|
|
|