updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / f-spot-dev / f-spot-dev.install
blob546d380e0fe12e3aa7cc604f963fecca0b1c4bbc
1 pkgname=f-spot
3 post_install() {
4   usr/sbin/gconfpkg --install ${pkgname}
5   update-desktop-database -q
6   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
9 pre_upgrade() {
10   pre_remove $1
13 post_upgrade() {
14   if [ "`vercmp $2 0.2.0`" -lt 0 ]; then
15   cat << EOM
16   ==> as of version 0.2.0 f-spot depends on sqlite3 instead of sqlite2, but
17   ==> you might want to keep sqlite2 installed to have f-spot convert your data.
18   ==> Please make an backup of your meta-data in ~/.gnome2/f-spot/photos.db
19   ==> and try to convert it manually if you encounter problems:
20       #> cd ~/.gnome2/f-spot                                                   
21       #> mv photos.db photos.old.db
22       #> sqlite photos.old.db .dump | sqlite3 photos.db
23 EOM
24   fi
25   post_install $1
28 pre_remove() {
29   usr/sbin/gconfpkg --uninstall ${pkgname}
32 post_remove() {
33   update-desktop-database -q
34   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor