PKGBUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Maintainer (Arch): Xyne <ac xunilhcra enyx, backwards>
  2. # Maintainer (Hyperbola): André Silva <emulatorman@parabola.nu>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. # Contributor: grizzlyuser <grizzlyuser@protonmail.com>
  5. pkgname=reflector
  6. pkgver=2020.9
  7. pkgrel=1
  8. pkgdesc='A Python 3 module and script to retrieve and filter the latest Pacman mirror list (Parabola rebranded)'
  9. arch=(any)
  10. license=(GPL)
  11. url="https://xyne.archlinux.ca/projects/reflector"
  12. replaces=(${pkgname}-parabola)
  13. conflicts=(${pkgname}-parabola)
  14. depends=(python3)
  15. optdepends=('rsync: rate rsync mirrors')
  16. backup=(etc/xdg/reflector/reflector.conf)
  17. source=(
  18. https://xyne.archlinux.ca/projects/reflector/src/reflector-${pkgver}.tar.xz
  19. https://xyne.archlinux.ca/projects/reflector/src/reflector-${pkgver}.tar.xz.sig
  20. rebranding.patch
  21. )
  22. sha512sums=('2cfad4919cd7cd0c3e4be2d99f2ef7d2df3b39254fc5494b2f858fb8f07f22278688a4b3708aecd109f0602d4b93a335ef15e08c3b48f61c2f2090bbaa58fc4e'
  23. 'SKIP'
  24. '555b7d455ffc29e8d20c938632c0c278959bc4946427680f462e56fb7aa7681780c0f7b0ecf5ff89a9cfca7524d441304fc08feeb4ad167c206003921a09a9ca')
  25. validpgpkeys=('EC3CBE7F607D11E663149E811D1F0DC78F173680')
  26. prepare ()
  27. {
  28. cd "$pkgname-$pkgver"
  29. # Rebranding for Parabola
  30. gunzip "man/${pkgname}.1.gz"
  31. patch -Np1 -i ../rebranding.patch
  32. gzip "man/${pkgname}.1"
  33. }
  34. package ()
  35. {
  36. cd "$srcdir/$pkgname-$pkgver"
  37. python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  38. install -Dm755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"
  39. install -Dm644 "man/${pkgname}.1.gz" "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz"
  40. install -Dm644 'reflector.service' "$pkgdir/usr/lib/systemd/system/reflector.service"
  41. install -Dm644 'reflector.timer' "$pkgdir/usr/lib/systemd/system/reflector.timer"
  42. install -Dm644 'reflector.conf' "$pkgdir/etc/xdg/reflector/reflector.conf"
  43. }