diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-02-24 23:58:31 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2021-02-25 00:00:41 -0500 |
commit | 7650fab4b2f279f32161418f661cffa78913e40a (patch) | |
tree | 170c7159f8c7ac0556b3a27e6023874d43cd46d0 | |
parent | 66d850d2486f100c7a468ea79a93a811374bea03 (diff) | |
download | abslibre-7650fab4b2f279f32161418f661cffa78913e40a.tar.gz abslibre-7650fab4b2f279f32161418f661cffa78913e40a.tar.bz2 abslibre-7650fab4b2f279f32161418f661cffa78913e40a.zip |
[pacman-mirrorlist]: add new mirror
-rw-r--r-- | libre/pacman-mirrorlist/PKGBUILD | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/libre/pacman-mirrorlist/PKGBUILD b/libre/pacman-mirrorlist/PKGBUILD index ea0b67e2c..f71703cae 100644 --- a/libre/pacman-mirrorlist/PKGBUILD +++ b/libre/pacman-mirrorlist/PKGBUILD @@ -5,30 +5,34 @@ # Contributor: Esteban Carnevale <alfplayer@mailoo.org> +# Note: building and publishing this package is a bit delicate +# 1: modify 'mirrorlist.txt' on the repo server +# 2: `makepkg -g` (to get the new checksum) +# 3: set 'pkgver' to YYYYMMDD +# 4: put the new checksum in 'sha256sums' +# 5: `sudo libremakepkg && librestage && librerelease` (to publish the new package) + + pkgname=pacman-mirrorlist -pkgver=20201002 +pkgver=20210225 pkgrel=1 pkgrel+=.parabola1 pkgdesc="Parabola GNU/Linux-libre mirror list for use by pacman" arch=('any') -url="https://repo.parabola.nu/mirrorlist.txt" +url="https://www.parabola.nu/" license=('GPL') backup=(etc/pacman.d/mirrorlist) -source=(mirrorlist-${pkgver}.txt::${url}) +source=(mirrorlist-${pkgver}.txt::https://repo.parabola.nu/mirrorlist.txt) -sha256sums=('6b6e170d0d2bdd3fc9f45ca3f0c42f52f44b8cfa33eabf4b69d6facf6fc280fe') +sha256sums=('0799119c19b0ca9b5f6aaaf272964c0728662d1a7f551e91cf34066bb1f6bd72') -pkgver() -{ - LC_ALL=C date -u +%Y%m%d -} prepare() { - local dt=$(LC_ALL=C date -u +%Y-%m-%d) + local dt=$( LC_ALL=C date -u +%Y-%m-%d ) - sed -i "s|Last Updated: .*|Last Updated: ${dt}|" "${srcdir}"/mirrorlist-${pkgver}.txt + sed -i "s|\(Last Updated: \).*|\1${dt}|" "${srcdir}"/mirrorlist-${pkgver}.txt } package() |