summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: a7f25c7bb57e65ea5d02a26a7b27bb7636e220af (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
# 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."
arch=('any')
url="https://parabolagnulinux.org"
license=('GPL')
groups=('base')
install=${pkgname}.install
source=()
md5sums=()
noextract=()

build() {
    cd ${srcdir}
    wget http://repo.parabolagnulinux.org/docs/blacklist.txt
    wget http://repo.parabolagnulinux.org/docs/whitelist.txt
    install -d ${pkgdir}/usr/share/doc/${pkgname}
    install -m644 {black,white}list.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
        ))
}