mirror of
https://github.com/termux/termux-packages.git
synced 2025-06-05 09:21:20 +00:00
Additional: include postinst script for pacman to update desktop MINE cache after installing or updating a package.
11 lines
322 B
Bash
11 lines
322 B
Bash
#!@TERMUX_PREFIX@/bin/bash
|
|
|
|
if [[ "${1}" = "remove" || "@TERMUX_PACKAGE_FORMAT@" = "pacman" ]]; then
|
|
if [[ -d "@TERMUX_PREFIX@/share/applications" ]]; then
|
|
rm -f "@TERMUX_PREFIX@/share/applications/mimeinfo.cache"
|
|
rmdir --ignore-fail-on-non-empty "@TERMUX_PREFIX@/share/applications"
|
|
fi
|
|
fi
|
|
|
|
exit 0
|