summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: e9935266078bdadafdacbf72a9488e2cf86de8da (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
31
# 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=20180403
_gitver=40f2a0ea7b4cf94a7c53d1be66dbfa4d4aaa82d2
pkgrel=1

arch=('any')
groups=('base' 'base-openrc')
install=${pkgname}.install

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

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
}