postrm is in suckless-tools 42-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
set -e
if [ "$1" = "abort-upgrade" ]; then
# If we abort-upgrade from a version less than '41',
# re-add dmenu alternatives
if dpkg --compare-versions "$2" lt "41"; then
update-alternatives --quiet --install /usr/bin/dmenu dmenu \
/usr/bin/dmenu.default 100
update-alternatives --quiet --install /usr/bin/dmenu dmenu \
/usr/bin/dmenu.xft 50
fi
fi
exit 0
|