wok view evince/receipt @ rev 13402
get-LibreOffice, get-OpenOffice3: add lower case alias
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 28 16:36:25 2012 +0200 (2012-09-28) |
parents | 3dbd940ab47f |
children | cfea6eaa0ada |
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 util-linux-uuid"
9 BUILD_DEPENDS="gnome-doc-utils-dev docbook-xml libxml2-dev \
10 gnome-icon-theme gtk+-dev intltool lcms-dev util-linux-uuid-dev \
11 poppler-dev tiff-dev dbus-glib-dev xorg-dev"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://projects.gnome.org/evince/"
14 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
15 TAGS="viewer pdf tiff ps postscript dvi"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr \
22 --libexecdir=/usr/lib/$PACKAGE \
23 --disable-nautilus \
24 --disable-scrollkeeper \
25 --disable-comics \
26 --without-gconf \
27 --without-keyring \
28 --disable-schemas-install \
29 --disable-gtk-doc-html \
30 --with-help-formats=none \
31 --disable-help \
32 $CONFIGURE_ARGS &&
33 make -j1 && make -j1 DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/glib-2.0 $fs/usr/lib $fs/usr/share/applications
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
42 cp -a $_pkg/usr/lib/evince $fs/usr/lib
44 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
45 cp -a $_pkg/usr/share/icons $fs/usr/share
46 cp -a $_pkg/usr/share/evince $fs/usr/share
47 cp -a $_pkg/usr/share/glib-2.0/schemas $fs/usr/share/glib-2.0
48 cp -a $stuff/evince.desktop $fs/usr/share/applications
50 # Removing unwanted files
51 find $fs/usr/lib -name "*.*a" -exec rm -rf {} \;
52 }
54 # Post install/remove commands for Tazpkg.
55 post_install()
56 {
57 echo "Processing post-install commands..."
58 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
59 }
61 post_remove()
62 {
63 echo "Processing post-remove commands..."
64 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
65 }