summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: 87def12dc0508fd45bc2fc59b0ab588b0bfc2175 (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=20190226.2
_gitver=9514f672705b0b848c14ef1bb0ae7c8d68d8f2ac
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=('cbef42ea725afd5b140057b767b084421d3f6f04d98f21a8d92ca0463527cda6bfa93930ff902f2f1399977065175af9c2c0935d19a9d9ede6a731e938c95518')

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
}