summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: f42f58e225882173dc0e919fa2f13e791d070172 (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

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

arch=('any')
groups=('base' 'base-openrc')

makedepends=(librelib)
source=(blacklist.txt)
sha512sums=('54d0cfa9a0c914eca950a3683ab7073aefeda7bba2dc7cb808cdaa62923f342aea213fe02b3004ebac3ba5c976304d59a96a02c4ef6cc33c0bae67bd6ca404b1')

package() {
	cd "$srcdir"

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

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