PKGBUILD 951 B

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer: Parabola Project <dev@lists.parabola.nu>
  2. pkgname=your-freedom
  3. pkgdesc="This package conflicts with every nonfree package known to date to ensure your system is free."
  4. license=('GPL3')
  5. url="https://git.parabola.nu/blacklist.git"
  6. pkgver=20211018.1
  7. _gitver=e3eeb82dc48d248e18ff240e778d77b765b336ce
  8. pkgrel=1
  9. arch=('any')
  10. install=${pkgname}.install
  11. makedepends=(librelib)
  12. source=(blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_gitver})
  13. sha512sums=('e93f5f1476068a261ff84b2a07d222fd09587ac97adae0236e309d3a72a26b47421e99aabfebef8029c1c24449634e274996a548e0db6eb16e67f08795a56084')
  14. package() {
  15. cd "$srcdir"
  16. sed -i '/^chromium*/d' "blacklist-${_gitver}.txt"
  17. conflicts=($( \
  18. < blacklist-${_gitver}.txt \
  19. libreblacklist normalize | \
  20. cut -d: -f1,2 | \
  21. sed -n 's/:$//p' | \
  22. sort -u \
  23. ))
  24. install -Dm644 blacklist-${_gitver}.txt "$pkgdir"/usr/share/doc/${pkgname}/blacklist.txt
  25. }