Install MIME types

This commit is contained in:
Zachary Hall 2024-10-19 10:26:34 -07:00
parent 975a2aeed6
commit a49f6962bb

View file

@ -133,6 +133,8 @@ src_install() {
for i in "${D}/usr/"{include,lib{,64}/{cmake,pkgconfig,libSoundTouch.a}}; do for i in "${D}/usr/"{include,lib{,64}/{cmake,pkgconfig,libSoundTouch.a}}; do
[ -e "$i" ] && rm -r "$i" [ -e "$i" ] && rm -r "$i"
done 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 # You must *personally verify* that this trick doesn't install
# anything outside of DESTDIR; do this by reading and # anything outside of DESTDIR; do this by reading and
# understanding the install part of the Makefiles. # understanding the install part of the Makefiles.
@ -158,8 +160,13 @@ src_install() {
# outside of ${D}. # outside of ${D}.
} }
pkg_postinst() { pkg_postinst() {
xdg-mime install /usr/share/looper/mime/zsm-mime.xml
xdg_desktop_database_update xdg_desktop_database_update
} }
pkg_prerm() {
xdg-mime uninstall /usr/share/looper/mime/zsm-mime.xml
default
}
pkg_postrm() { pkg_postrm() {
xdg_desktop_database_update xdg_desktop_database_update
} }