summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: 9de940424dcef39a31bd44ac52570b8f6c3ff7f1 (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=20181220
_gitver=d52f87985672da86e4d8dc17b854a3d278ea3575
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=('d71c5dd5eb0e6cf2e2fcf941d4aebf8d16f9ffa6246d1e27b7796be5b33301337dc7488a7ce1d3a3eecdc2d24a5cbc86ba9ec446c7ddb370afd24f58cec0b2f3')

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
}