From a49f6962bb04d5214d9dc37afc43161c6b5a596c Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sat, 19 Oct 2024 10:26:34 -0700 Subject: [PATCH] Install MIME types --- media-sound/looper/looper-9999.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/media-sound/looper/looper-9999.ebuild b/media-sound/looper/looper-9999.ebuild index dffb171..054393d 100644 --- a/media-sound/looper/looper-9999.ebuild +++ b/media-sound/looper/looper-9999.ebuild @@ -133,6 +133,8 @@ src_install() { for i in "${D}/usr/"{include,lib{,64}/{cmake,pkgconfig,libSoundTouch.a}}; do [ -e "$i" ] && rm -r "$i" done + mkdir -p "${D}/usr/share/looper/mime" + install -m 644 "${S}/assets/zsm-mime.xml" "${D}/usr/share/looper/mime" # You must *personally verify* that this trick doesn't install # anything outside of DESTDIR; do this by reading and # understanding the install part of the Makefiles. @@ -158,8 +160,13 @@ src_install() { # outside of ${D}. } pkg_postinst() { + xdg-mime install /usr/share/looper/mime/zsm-mime.xml xdg_desktop_database_update } +pkg_prerm() { + xdg-mime uninstall /usr/share/looper/mime/zsm-mime.xml + default +} pkg_postrm() { xdg_desktop_database_update }