updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / openoffice-infra-ru / openoffice.install
blob93e6ae5cd05009c4bafdc6b1ddb599fd47b9b516
1 post_install() {
2   cd /opt/openoffice.org3/program
3   ./unopkg add --shared /opt/openoffice.org3/share/extension/install/dict-ru.oxt
4   ./unopkg add --shared /opt/openoffice.org3/share/extension/install/dict-en.oxt
5   ./unopkg add --shared /opt/openoffice.org3/share/extension/install/LanguageTool-0.9.9.oxt
6   [ -x /usr/bin/update-desktop-database ] && /usr/bin/update-desktop-database > /dev/null 2>&1
9 pre_upgrade() {
10   /bin/true
13 post_upgrade() {
14   post_install $1 
17 pre_remove () {
18   rm -r /opt/openoffice.org3/share/{uno_packages,registry} 
21 post_remove () {
22   [ -x /usr/bin/update-desktop-database ] && /usr/bin/update-desktop-database > /dev/null 2>&1
25 op=$1
26 shift
28 $op $*