PKGBUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Maintainer (arch): Florian Pritz <bluewind@xinu.at>
  2. # Contributor (arch): Dan McGee <dan@archlinux.org>
  3. # Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # Contributor: Esteban Carnevale <alfplayer@mailoo.org>
  6. # Note: building and publishing this package is a bit delicate
  7. # 1: modify 'mirrorlist.txt' on the repo server
  8. # 2: `makepkg -g` (to get the new checksum)
  9. # 3: set 'pkgver' to YYYYMMDD
  10. # 4: put the new checksum in 'sha256sums'
  11. # 5: `sudo libremakepkg && librestage && librerelease` (to publish the new package)
  12. pkgname=pacman-mirrorlist
  13. pkgver=20210225
  14. pkgrel=1
  15. pkgrel+=.parabola1
  16. pkgdesc="Parabola GNU/Linux-libre mirror list for use by pacman"
  17. arch=('any')
  18. url="https://www.parabola.nu/"
  19. license=('GPL')
  20. backup=(etc/pacman.d/mirrorlist)
  21. source=(mirrorlist-${pkgver}.txt::https://repo.parabola.nu/mirrorlist.txt)
  22. sha256sums=('0799119c19b0ca9b5f6aaaf272964c0728662d1a7f551e91cf34066bb1f6bd72')
  23. prepare()
  24. {
  25. local dt=$( LC_ALL=C date -u +%Y-%m-%d )
  26. sed -i "s|\(Last Updated: \).*|\1${dt}|" "${srcdir}"/mirrorlist-${pkgver}.txt
  27. }
  28. package()
  29. {
  30. mkdir -p "${pkgdir}"/etc/pacman.d
  31. install -m644 "${srcdir}"/mirrorlist-${pkgver}.txt "${pkgdir}"/etc/pacman.d/mirrorlist
  32. }