wok view evince/receipt @ rev 11143

Up: wget to 1.13.4.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Oct 26 21:18:41 2011 +0000 (2011-10-26)
parents c457c027baec
children a3e5cd2d355a
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 util-linux-ng-uuid"
9 BUILD_DEPENDS="gnome-doc-utils-dev docbook-xml \
10 gnome-icon-theme gtk+-dev intltool lcms-dev util-linux-ng-uuid-dev"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://projects.gnome.org/evince/"
13 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/evince/${VERSION%.*}/${TARBALL}"
14 TAGS="viewer pdf tiff ps postscript dvi"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr \
21 --libexecdir=/usr/lib/$PACKAGE \
22 --disable-nautilus \
23 --disable-scrollkeeper \
24 --disable-comics \
25 --without-gconf \
26 --without-keyring \
27 --disable-schemas-install \
28 --disable-gtk-doc-html \
29 --with-help-formats=none \
30 $CONFIGURE_ARGS &&
31 make -j1 && make -j1 DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/glib-2.0 $fs/usr/lib
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
40 cp -a $_pkg/usr/lib/evince $fs/usr/lib
42 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
43 cp -a $_pkg/usr/share/icons $fs/usr/share
44 cp -a $_pkg/usr/share/evince $fs/usr/share
45 cp -a $_pkg/usr/share/glib-2.0/schemas $fs/usr/share/glib-2.0
47 # Removing unwanted files
48 find $fs/usr/lib -name "*.*a" -exec rm -rf {} \;
49 }
51 # Post install/remove commands for Tazpkg.
52 post_install()
53 {
54 echo "Processing post-install commands..."
55 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
56 }
58 post_remove()
59 {
60 echo "Processing post-remove commands..."
61 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
62 }