Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=f93ec8be2b6b6f0d09eabc0da6200eed73f60ca5

commit f93ec8be2b6b6f0d09eabc0da6200eed73f60ca5
Author: Baste <[email protected]>
Date:   Wed Apr 10 10:04:20 2013 +0200

shotwell-0.14.1-1-x86_64
* Version bump

diff --git a/source/gnome-extra/shotwell/FrugalBuild 
b/source/gnome-extra/shotwell/FrugalBuild
index 65bb841..b7abba2 100644
--- a/source/gnome-extra/shotwell/FrugalBuild
+++ b/source/gnome-extra/shotwell/FrugalBuild
@@ -1,39 +1,32 @@
-# Compiling Time: 2.82 SBU
+# Compiling Time: 1.23 SBU
# Maintainer: Baste <[email protected]>

+options+=('asneeded')
+
pkgname=shotwell
-pkgver=0.13.1
-pkgrel=3
+pkgver=0.14.1
+pkgrel=1
pkgdesc="A digital photo organizer designed for the GNOME desktop environment"
url="http://yorba.org/shotwell/";
-depends=('libgee' 'libgexiv2>=0.4.1-2' 'libgphoto2>=2.5.0' 'unique' 
'gst-plugins-base' \
-        'libraw>=0.14.3' 'librsvg' 'json-glib' 'systemd>=188' 'webkit-gtk3' 
'librest' 'gtk+3')
-makedepends=('vala>=0.11' 'intltool')
-options=('scriptlet')
-_F_gnome_glib="y"
-_F_gnome_desktop="y"
-_F_gnome_iconcache="y"
-Finclude gnome-scriptlet
+depends=('libgee' 'libgexiv2' 'gst1-plugins-base' 'webkit-gtk3' 'libgphoto2' 
'libraw' \
+       'librest' 'json-glib')
+makedepends=('vala')
groups=('gnome-extra')
archs=('i686' 'x86_64')
-up2date="Flasttar $url/install/"
+up2date="Flasttar http://yorba.org/download/shotwell/stable/";
source=(http://yorba.org/download/shotwell/stable/$pkgname-$pkgver.tar.xz)
-sha1sums=('2748966e851baa465906c3c9bbfedcd48008432d')
+sha1sums=('7fa0fc21938b7627411d6d6c6c78c262bd6b756c')

build() {
Fcd
-       Fpatchall
./configure --prefix=/usr \
-       --with-gconf-schema-file-dir=/etc/gconf/schemas \
-       --disable-schemas-install \
+       --disable-schemas-compile \
--disable-desktop-update \
-       --disable-gsettings-convert-install \
--disable-icon-update || Fdie
-       make || Fdie
+       Fmake
Fmakeinstall
Frm usr/share/icons/hicolor/icon-theme.cache
Frm usr/share/glib-2.0/schemas/gschemas.compiled
-       Fbuild_gnome_scriptlet
}

# optimization OK
diff --git a/source/gnome-extra/shotwell/shotwell.install 
b/source/gnome-extra/shotwell/shotwell.install
new file mode 100644
index 0000000..7c2ad55
--- /dev/null
+++ b/source/gnome-extra/shotwell/shotwell.install
@@ -0,0 +1,74 @@
+UpdateIconCache()
+{
+       if [ -f /usr/bin/gtk-update-icon-cache ]
+       then
+               echo -n "updating hicolor icon cache..."
+               if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > 
/dev/null 2>&1 ; then
+                       echo " done."
+               else
+                       echo " failed."
+               fi
+       fi
+       if [ -f /usr/bin/gtk-update-icon-cache-3.0 ]
+       then
+               echo -n "updating hicolor icon cache gtk+3..."
+               if gtk-update-icon-cache-3.0 -f -t /usr/share/icons/hicolor > 
/dev/null 2>&1 ; then
+                       echo " done."
+               else
+                       echo " failed."
+               fi
+       fi
+}
+
+UpdateDesktopDatabase()
+{
+       if [ -f /usr/bin/update-desktop-database ]
+       then
+               echo -n "updating desktop database..."
+               if update-desktop-database > /dev/null 2>&1 ; then
+                       echo " done."
+               else
+                       echo " failed."
+               fi
+       fi
+       if [ -f /usr/bin/update-desktop-database-3.0 ]
+       then
+               echo -n "updating desktop database gtk+3..."
+               if update-desktop-database > /dev/null 2>&1 ; then
+                       echo " done."
+               else
+                       echo " failed."
+               fi
+       fi
+}
+
+post_install()
+{
+       UpdateIconCache
+       UpdateDesktopDatabase
+       echo -n "loading schema glib entries... "
+               glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null
+       echo "done."
+}
+
+post_upgrade()
+{
+       post_install $1
+}
+
+pre_remove() {
+       echo -n "loading schema glib entries... "
+                glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null
+        echo "done."
+}
+
+post_remove()
+{
+       UpdateIconCache
+       UpdateDesktopDatabase
+}
+
+op=$1
+shift
+
+$op $*
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to