summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: 6ddf28c19b51deb2b3afa5596b46f1b09c47abb8 (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
# 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=20200712
_gitver=d65b00a3a9d2ced610c52a5baaae9e100f75ddd2
pkgrel=1

arch=('any')
install=${pkgname}.install

makedepends=(librelib)
source=(blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_gitver})
sha512sums=('9105e58cce5243bcc5dba13cc44d2cf3651d2ba6bb9d1ba9c95208a4f23764e53a8f16f406d7cfdd6fd73bbfb6f68be085c6f284260e7758c1f72b29f026ba8f')

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
}