summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 0ff711b08f38521ce3db9b3d92dfc3393f290373 (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=20180112
pkgrel=2

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

makedepends=(librelib)
source=(blacklist.txt)
sha512sums=('1b185a1dbb7f045a5dbab0491f8a74430c5db5c3595606fa94e0aa7fe2c9f6b5f4d8ac0f581f7ff650c193ff36642cfe02640a9955849418064b1dcba59927cc')

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
}