summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: b5f9a8218d4fc05b814bef4be59810de6f5cae8a (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=20190708
_gitver=8fc1b7edac3259b00cedd5e69fe5907c8e8990e9
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=('380f1b3d6703105908cf6b32f36c45d27a96f7e3aaacf4e42d8c7c0487b0d2c948d2ecf883ee40e9b8ead2e6af85b79c1d63b96897e35eea7c5055b5fe2c41d4')

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
}