build-package.sh: force remove ./share/icons/hicolor/icon-theme.cache from deb files

Specific to x11 packages. It is better to implement this in build-package.sh
instead of removing it on per-build.sh basis.
This commit is contained in:
Leonid Pliushch 2021-03-02 00:17:36 +02:00
parent f36b4a5ac2
commit 141703e676
No known key found for this signature in database
GPG Key ID: 45F2964132545795

View File

@ -42,6 +42,9 @@ termux_step_massage() {
# Delete the info directory file.
rm -rf ./share/info/dir
# Mostly specific to X11-related packages.
rm -f ./share/icons/hicolor/icon-theme.cache
test ! -z "$TERMUX_PKG_RM_AFTER_INSTALL" && rm -Rf $TERMUX_PKG_RM_AFTER_INSTALL
find . -type d -empty -delete # Remove empty directories