summaryrefslogtreecommitdiff
path: root/pcr-testing/anki-ccbc/anki-ccbc.install
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-07-09 21:50:27 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-07-10 00:18:22 -0400
commitd8d414c66f4dd069a31eb1aa34443a7fb59215c7 (patch)
tree03948eec7c52280e4d1ce0a726a19e38d78e491b /pcr-testing/anki-ccbc/anki-ccbc.install
parent8d137041af258e45c0bfb4a409c2c43a180fb2c9 (diff)
downloadabslibre-d8d414c66f4dd069a31eb1aa34443a7fb59215c7.tar.gz
abslibre-d8d414c66f4dd069a31eb1aa34443a7fb59215c7.tar.bz2
abslibre-d8d414c66f4dd069a31eb1aa34443a7fb59215c7.zip
[anki-ccbc]: add package
Diffstat (limited to 'pcr-testing/anki-ccbc/anki-ccbc.install')
-rw-r--r--pcr-testing/anki-ccbc/anki-ccbc.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr-testing/anki-ccbc/anki-ccbc.install b/pcr-testing/anki-ccbc/anki-ccbc.install
new file mode 100644
index 000000000..8fd036a16
--- /dev/null
+++ b/pcr-testing/anki-ccbc/anki-ccbc.install
@@ -0,0 +1,11 @@
+post_install()
+{
+ xdg-mime install /usr/share/anki-ccbc/anki.xml --novendor
+ xdg-mime default /usr/share/applications/anki-ccbc.desktop application/x-anki
+ xdg-mime default /usr/share/applications/anki-ccbc.desktop application/x-apkg
+}
+
+pre_remove()
+{
+ xdg-mime uninstall /usr/share/mime/packages/anki.xml
+}