# Maintainer: Parabola Project pkgname=your-freedom pkgver=20220403 _gitver=56705cca69fa9559e17bf26fd9137139dc641273 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=('5080970007c19680839f94d4f959085ee422c0451105d8c905ccfcc214547f4e') 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 }