summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: f7f3a01c16dda330084f2b794a5137699088c1fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Parabola Project <dev@lists.parabola.nu>

pkgname=your-freedom
pkgdesc="This package conflicts with every nonfree package known to date to ensure your system is free."
license=('GPL3')
url="https://git.parabola.nu/blacklist.git"
pkgver=20200201
_gitver=d750c3c80b6e5212703c806b1b458ab9e21383ba
pkgrel=1

arch=('any')
install=${pkgname}.install

makedepends=(librelib)
source=(blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_gitver})
sha512sums=('5ca445b2059951481a2b9dedbc9346a5c32d2a253ab4c827380aa6c3fff81c04b8d7e5ed393dd361da3d6ecf6d02a31ad8df5822e35dd3e43a2e6fcebbcf4d3b')

package() {
	cd "$srcdir"

	conflicts=($( \
		< blacklist-${_gitver}.txt \
		libreblacklist normalize | \
		cut -d: -f1,2 | \
		sed -n 's/:$//p' | \
		sort -u \
		))

	install -Dm644 blacklist-${_gitver}.txt "$pkgdir"/usr/share/doc/${pkgname}/blacklist.txt
}