jobcore/pacman-mirrorlist/PKGBUILD

36 lines
1.3 KiB
Bash
Raw Permalink 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
2023-10-01 18:25:25 +02:00
pkgver=20231001
2023-04-14 09:28:32 +02:00
pkgrel=01
2022-03-20 13:19:37 +01:00
pkgdesc="Arch Linux mirror list for use by pacman HTTPS ONLY"
url="https://www.archlinux.org/mirrorlist/"
backup=(etc/pacman.d/mirrorlist)
2023-06-28 19:48:14 +02:00
source=(mirrorlist::https://gitlab.archlinux.org/archlinux/packaging/packages/pacman-mirrorlist/-/raw/main/mirrorlist
select)
2022-03-20 13:19:37 +01:00
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
2022-03-20 13:19:37 +01:00
install -m644 "$srcdir/mirrorlist-https" "$pkgdir/etc/pacman.d/mirrorlist"
2023-04-14 09:28:32 +02:00
install -m644 "$srcdir/mirrorlist" "$pkgdir/etc/pacman.d/mirrorlist-arch"
2022-03-20 13:19:37 +01:00
}
#---- arch license gpg-key & sha256sums ----
2023-08-20 19:09:17 +02:00
arch=(x86_64)
2022-05-01 23:31:49 +02:00
license=('GPL')
2023-10-01 18:25:25 +02:00
sha256sums=(b8fdb9f50197fd95f71b680b4e25dae6c69101a827c3f44a0b77bc01ac970bab # mirrorlist
SKIP) # select
2022-12-06 17:13:57 +01:00
2023-10-01 18:25:25 +02:00
## 7ccefc8c2a9102ef2b8d0ed85a71fbac5e39766a6f7a4b716742f29218f37c7a pacman-mirrorlist-20231001-01-x86_64.pkg.tar.lz