# Maintainer: Parabola Hackers pkgname=your-freedom pkgver=20220428 _gitver=e452f2fe155467ed7996ef23edb959fd30af868c pkgrel=1 pkgdesc="This package conflicts with every nonfree package known to date to ensure your system is free." license=(GPL3) url=https://wiki.parabola.nu/Blacklist arch=(any) install=${pkgname}.install makedepends=(librelib) source=(blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_gitver}) sha256sums=('fd936f329c6f38e417a0d30b8155a6d3005935f75b429532ae5c0b0bd2eed6fc') package() { # collect blacklisted package names as pacman conflicts, # also to be excluded by the repo importer, and rejected by libremakepkg conflicts=( $( libreblacklist normalize < blacklist-${_gitver}.txt | \ cut -d: -f1,2 | sed -n 's/:$//p' | sort -u ) ) install -Dm644 blacklist-${_gitver}.txt "${pkgdir}"/usr/share/doc/${pkgname}/blacklist.txt }