# Maintainer: Parabola Project pkgname=your-freedom pkgver=20220404 _gitver=3aa7004ecbeb6a312bcc43ddbca3db9b0eaf3097 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=('d2b8ec946d8436e302d634f6a1fb1580d8bd6a42b1b6d61caf6275ef6c3e501c') 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 }