# Maintainer: Parabola Hackers pkgname=your-freedom pkgver=20220426 _gitver=8e51fb4416d67ca8ad4b677e865721b15c3bef57 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 }