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
[ -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
}