summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/your-freedom/PKGBUILD')
-rw-r--r--libre/your-freedom/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD
new file mode 100644
index 000000000..a7f25c7bb
--- /dev/null
+++ b/libre/your-freedom/PKGBUILD
@@ -0,0 +1,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
+ ))
+}