summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: 767b5e1d13c49fba98b90eca7183e5bd97681c63 (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
# Maintainer: Parabola Project <dev@list.parabolagnulinux.org>
pkgname=your-freedom
pkgver=$(LC_ALL=C date -u +%Y%m%d)
pkgrel=1
pkgdesc="This package conflicts with every unfree package known to date to ensure your system is free."
arch=('any')
url="https://parabolagnulinux.org"
license=('GPL3')
groups=('base')
install=${pkgname}.install
source=(https://projects.parabolagnulinux.org/blacklist.git/plain/blacklist.txt)
md5sums=('bfb788afe8386c24116d44827329f3d4')

build() {
    cd ${srcdir}
    install -d ${pkgdir}/usr/share/doc/${pkgname}
    install -m644 blacklist.txt ${pkgdir}/usr/share/doc/${pkgname}/
}

package() {
    conflicts=($(cut -d: -f1,2 ${pkgdir}/usr/share/doc/${pkgname}/blacklist.txt | \
        sed "s/:$//" | \
        grep -v ":" | \
        sort -u
        ))
}