summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: 53dc4eb5e941ec6b65485589e000deb2159f5b1c (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=20180117
_gitver=f9e9891fd5cca9ea740b0a6dd947cd3bcde1e35e
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=('6bb2a4e27f58fa8d3b3c5f9f85bf68dc6bde5e282f6bd22705cfcd1c4034b1b3f6d81c03c9c586a56e2ff385f50a80e9f59375f08b3b35315227d417c21187b9')

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
}