Install MIME types
This commit is contained in:
parent
975a2aeed6
commit
a49f6962bb
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue