wok-6.x view evince/receipt @ rev 11901

emacs-pkg-vala-mode: remove TARBALL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 29 18:51:21 2012 +0100 (2012-02-29)
parents a3e5cd2d355a
children 73641efed1cc
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 --disable-help \
31 $CONFIGURE_ARGS &&
32 make -j1 && make -j1 DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/glib-2.0 $fs/usr/lib $fs/usr/share/applications
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 cp -a $_pkg/usr/lib/evince $fs/usr/lib
43 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
44 cp -a $_pkg/usr/share/icons $fs/usr/share
45 cp -a $_pkg/usr/share/evince $fs/usr/share
46 cp -a $_pkg/usr/share/glib-2.0/schemas $fs/usr/share/glib-2.0
47 cp -a $stuff/evince.desktop $fs/usr/share/applications
49 # Removing unwanted files
50 find $fs/usr/lib -name "*.*a" -exec rm -rf {} \;
51 }
53 # Post install/remove commands for Tazpkg.
54 post_install()
55 {
56 echo "Processing post-install commands..."
57 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
58 }
60 post_remove()
61 {
62 echo "Processing post-remove commands..."
63 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
64 }