PREUN
/bin/sh
if [[ "$1" = "0" ]]; then perl -ni -e "/^DICT\s*hr\s*HR\s*hr_HR$/ or print" /usr/share/dict/ooo/dictionary.lst fi
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*hr[ \t]*HR[ \t]*hr_HR" /usr/share/dict/ooo/dictionary.lst then echo "DICT hr HR hr_HR" >> /usr/share/dict/ooo/dictionary.lst fi