summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/your-freedom_emu/PKGBUILD25
-rw-r--r--libre/your-freedom_emu/your-freedom_emu.install27
2 files changed, 52 insertions, 0 deletions
diff --git a/libre/your-freedom_emu/PKGBUILD b/libre/your-freedom_emu/PKGBUILD
new file mode 100644
index 000000000..2b9b16fc1
--- /dev/null
+++ b/libre/your-freedom_emu/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Parabola Project <dev@list.parabolagnulinux.org>
+pkgname=your-freedom_emu
+pkgver=$(LC_ALL=C date -u +%Y%m%d)
+pkgrel=1
+pkgdesc="This package removes hardware emulators that emulate technically free games and/or OS (but only there are nonfree games and/or OS)."
+arch=('any')
+url="https://parabolagnulinux.org"
+license=('GPL3')
+groups=('base')
+install=${pkgname}.install
+source=(${pkgname}-blacklist-${pkgver}.txt::https://projects.parabolagnulinux.org/blacklist.git/plain/${pkgname}-blacklist.txt)
+
+package() {
+ conflicts=($(cut -d: -f1,2 ${pkgname}-blacklist-${pkgver}.txt | \
+ sed "s/:$//" | \
+ grep -v ":" | \
+ grep -v '^#' | \
+ sort -u
+ ))
+ cd ${srcdir}
+ install -d ${pkgdir}/usr/share/doc/${pkgname}
+ install -m644 ${pkgname}-blacklist-${pkgver}.txt ${pkgdir}/usr/share/doc/${pkgname}/
+}
+
+md5sums=('197e40b43d0495e26535db7aee90f4ff')
diff --git a/libre/your-freedom_emu/your-freedom_emu.install b/libre/your-freedom_emu/your-freedom_emu.install
new file mode 100644
index 000000000..cd39eb3e8
--- /dev/null
+++ b/libre/your-freedom_emu/your-freedom_emu.install
@@ -0,0 +1,27 @@
+
+pre_install() {
+ cat <<EOM
+ == IMPORTANT NOTICE ==
+
+ This package will help you identify emulator packages that are installed
+ on your system at the time of its installation, as well as protecting
+ you from (accidentally) installing them.
+
+ Also, if any other emulator package is identified, later updates will ask
+ you for its removal.
+
+ Have in mind that, if you want to retain certain emulator packages
+ installed on your system, you'll have to remove your-freedom_emu :)
+
+ Please report back to the Parabola Project on the usual channels:
+ * https://labs.parabola.nu
+ * irc://freenode.net/#parabola
+ * mailto:dev@lists.parabolagnulinux.org
+EOM
+}
+
+pre_upgrade() {
+ pre_install
+}
+
+# vim:set ts=2 sw=2 et: