summaryrefslogtreecommitdiff
path: root/community/codeblocks/codeblocks.install
blob: bc2b14affc57bf45f56527d04a8fae31c7074343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pkgname=codeblocks

post_install() {
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  update-mime-database usr/share/mime &>/dev/null
  update-desktop-database -q
  ln -s /usr/lib/libwxflatnotebook.so /usr/lib/libwxflatnotebook.so.0
  ln -s /usr/lib/libwxchartctrl.so  /usr/lib/libwxchartctrl.so.0
  ln -s /usr/lib/libwxcustombutton.so /usr/lib/libwxcustombutton.so.0
  }

pre_upgrade() {
  pre_remove $1
}

post_upgrade() {
  post_install $1
  rm /usr/lib/libwxflatnotebook.so.0 \
   /usr/lib/libwxchartctrl.so.0 /usr/lib/libwxcustombutton.so.0    
}

pre_remove() {
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  update-mime-database usr/share/mime &>/dev/null
  update-desktop-database -q
}