wok-4.x view evince/receipt @ 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 8308b88235f6
children c457c027baec
line source
1 # SliTaz package receipt.
3 PACKAGE="evince"
4 VERSION="2.32.0"
5 CATEGORY="office"
6 SHORT_DESC="Document viewer for Gnome"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="lcms poppler tiff dbus-glib glib-dev"
9 BUILD_DEPENDS="gnome-doc-utils-dev docbook-xml gnome-icon-theme gtk+-dev intltool lcms-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://projects.gnome.org/evince/"
12 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/evince/${VERSION%.*}/${TARBALL}"
13 TAGS="viewer pdf tiff ps postscript dvi"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr \
20 --libexecdir=/usr/lib/$PACKAGE \
21 --disable-nautilus \
22 --disable-scrollkeeper \
23 --disable-comics \
24 --without-gconf \
25 --without-keyring \
26 --disable-schemas-install \
27 --disable-gtk-doc-html \
28 --with-help-formats=none \
29 $CONFIGURE_ARGS &&
30 make -j1 && make -j1 DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/glib-2.0 $fs/usr/lib
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 cp -a $_pkg/usr/lib/evince $fs/usr/lib
41 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
42 cp -a $_pkg/usr/share/icons $fs/usr/share
43 cp -a $_pkg/usr/share/evince $fs/usr/share
44 cp -a $_pkg/usr/share/glib-2.0/schemas $fs/usr/share/glib-2.0
46 # Removing unwanted files
47 find $fs/usr/lib -name "*.*a" -exec rm -rf {} \;
48 }
50 # Post install/remove commands for Tazpkg.
51 post_install()
52 {
53 echo "Processing post-install commands..."
54 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
55 }
57 post_remove()
58 {
59 echo "Processing post-remove commands..."
60 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
61 }