shared-mime-info: use triggers
the rebuild of the database is now handled by a trigger and happen only
once at the end of the transaction instead of after each package
installation.
While make shared-mime-info a runtime only dependency
Reviewed by: manu, mat
Differential Revision: https://reviews.freebsd.org/D32452