wok-current rev 10912
evince: install schema org.gnome.Evince.Default (thanks mojo)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 29 15:49:54 2011 +0200 (2011-07-29) |
parents | f6008b21317f |
children | d2589f7a1e56 |
files | evince/receipt |
line diff
1.1 --- a/evince/receipt Thu Jul 28 10:20:30 2011 +0200 1.2 +++ b/evince/receipt Fri Jul 29 15:49:54 2011 +0200 1.3 @@ -5,7 +5,7 @@ 1.4 CATEGORY="office" 1.5 SHORT_DESC="Document viewer for Gnome" 1.6 MAINTAINER="erjo@slitaz.org" 1.7 -DEPENDS="lcms poppler tiff dbus-glib" 1.8 +DEPENDS="lcms poppler tiff dbus-glib glib-dev" 1.9 BUILD_DEPENDS="gnome-doc-utils-dev docbook-xml gnome-icon-theme gtk+-dev intltool lcms-dev" 1.10 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.11 WEB_SITE="http://projects.gnome.org/evince/" 1.12 @@ -33,7 +33,7 @@ 1.13 # Rules to gen a SliTaz package suitable for Tazpkg. 1.14 genpkg_rules() 1.15 { 1.16 - mkdir -p $fs/usr/share $fs/usr/lib 1.17 + mkdir -p $fs/usr/share/glib-2.0 $fs/usr/lib 1.18 cp -a $_pkg/usr/bin $fs/usr 1.19 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.20 cp -a $_pkg/usr/lib/evince $fs/usr/lib 1.21 @@ -41,7 +41,21 @@ 1.22 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share 1.23 cp -a $_pkg/usr/share/icons $fs/usr/share 1.24 cp -a $_pkg/usr/share/evince $fs/usr/share 1.25 + cp -a $_pkg/usr/share/glib-2.0/schemas $fs/usr/share/glib-2.0 1.26 1.27 # Removing unwanted files 1.28 find $fs/usr/lib -name "*.*a" -exec rm -rf {} \; 1.29 } 1.30 + 1.31 +# Post install/remove commands for Tazpkg. 1.32 +post_install() 1.33 +{ 1.34 + echo "Processing post-install commands..." 1.35 + chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas 1.36 +} 1.37 + 1.38 +post_remove() 1.39 +{ 1.40 + echo "Processing post-remove commands..." 1.41 + chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas 1.42 +}