Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # arg 1: the new package version including the release number hyphenated onto the end
- post_install() {
- echo "Installing default icons..."
- xdg-icon-resource install --novendor --theme hicolor --size 48 --context apps usr/share/renoise-${1%-*}/renoise-48.png renoise
- xdg-icon-resource install --novendor --theme hicolor --size 64 --context apps usr/share/renoise-${1%-*}/renoise-64.png renoise
- xdg-icon-resource install --novendor --theme hicolor --size 128 --context apps usr/share/renoise-${1%-*}/renoise-128.png renoise
- }
- # arg 1: the new package version including the release number hyphenated onto the end
- # arg 2: the old package version including the release number hyphenated onto the end
- post_upgrade() {
- echo "Updating default icons..."
- xdg-icon-resource install --novendor --theme hicolor --size 48 --context apps usr/share/renoise-${1%-*}/renoise-48.png renoise
- xdg-icon-resource install --novendor --theme hicolor --size 64 --context apps usr/share/renoise-${1%-*}/renoise-64.png renoise
- xdg-icon-resource install --novendor --theme hicolor --size 128 --context apps usr/share/renoise-${1%-*}/renoise-128.png renoise
- }
- # arg 1: the old package version including the release number hyphenated onto the end
- post_remove() {
- echo "Removing default icons..."
- xdg-icon-resource uninstall --theme hicolor --size 48 --context mimetypes renoise application-x-renoise-module
- xdg-icon-resource uninstall --theme hicolor --size 64 --context mimetypes renoise application-x-renoise-module
- xdg-icon-resource uninstall --theme hicolor --size 128 --context mimetypes renoise application-x-renoise-module
- xdg-icon-resource uninstall --theme hicolor --size 48 --context apps renoise
- xdg-icon-resource uninstall --theme hicolor --size 64 --context apps renoise
- xdg-icon-resource uninstall --theme hicolor --size 128 --context apps renoise
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement