summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: df53ec0cb875d7d531e2d0ed9f18043b0480d749 (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=3
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
        ))
}