summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 90558675387701a80e5724381d566c3e5517433e (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

pkgname=your-freedom
pkgdesc="This package conflicts with every proven nonfree package to ensure your system is free."
license=('GPL3')
url="https://git.parabola.nu/blacklist.git"
pkgver=20170710
pkgrel=1

arch=('any')
groups=('base' 'base-openrc')

makedepends=(librelib)
source=(blacklist.txt)
sha512sums=('0c8b8f7b5e8ad54e13167a1f78fb3513722ed32d9e77e5f8e42cc30e1de4e10940560b1316168659ab878eaabec55412daec3948ea97e10a611bd3256bf029a2')
validpgpkeys=(
              '081E4760E5FCD76098A304E43A85CAFF5C61486A' # jc_gargma
)
              
package() {
	cd "$srcdir"

	conflicts=($(
		< blacklist.txt \
		libreblacklist normalize |
		cut -d: -f1,2 |
		sed -n 's/:$//p' |
		sort -u
		))

	install -Dm644 blacklist.txt "$pkgdir"/usr/share/doc/${pkgname}/blacklist.txt
}