wok-6.x annotate evince/receipt @ rev 14059
Up: slitaz-tools (5.3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed Feb 20 10:51:32 2013 +0100 (2013-02-20) |
parents | 80b749da41b5 |
children | 7896f0694ef6 |
rev | line source |
---|---|
erjo@4727 | 1 # SliTaz package receipt. |
erjo@4727 | 2 |
erjo@4727 | 3 PACKAGE="evince" |
slaxemulator@9357 | 4 VERSION="2.32.0" |
erjo@4727 | 5 CATEGORY="office" |
erjo@4727 | 6 SHORT_DESC="Document viewer for Gnome" |
erjo@4727 | 7 MAINTAINER="erjo@slitaz.org" |
slaxemulator@12595 | 8 DEPENDS="lcms poppler tiff dbus-glib glib util-linux-uuid" |
pascal@12594 | 9 BUILD_DEPENDS="gnome-doc-utils-dev docbook-xml libxml2-dev \ |
slaxemulator@12595 | 10 gnome-icon-theme gtk+-dev intltool lcms-dev util-linux-uuid-dev \ |
slaxemulator@12595 | 11 poppler-dev tiff-dev dbus-glib-dev xorg-dev" |
erjo@4727 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@4727 | 13 WEB_SITE="http://projects.gnome.org/evince/" |
slaxemulator@12595 | 14 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
jozee@4935 | 15 TAGS="viewer pdf tiff ps postscript dvi" |
erjo@4727 | 16 |
monghitri@13986 | 17 |
erjo@4727 | 18 # Rules to configure and make the package. |
erjo@4727 | 19 compile_rules() |
erjo@4727 | 20 { |
erjo@4727 | 21 cd $src |
erjo@4727 | 22 ./configure --prefix=/usr \ |
erjo@4727 | 23 --libexecdir=/usr/lib/$PACKAGE \ |
erjo@4727 | 24 --disable-nautilus \ |
erjo@4727 | 25 --disable-scrollkeeper \ |
erjo@4727 | 26 --disable-comics \ |
erjo@4727 | 27 --without-gconf \ |
erjo@4727 | 28 --without-keyring \ |
erjo@4727 | 29 --disable-schemas-install \ |
erjo@4727 | 30 --disable-gtk-doc-html \ |
erjo@4727 | 31 --with-help-formats=none \ |
samuel_trassare@11788 | 32 --disable-help \ |
erjo@4727 | 33 $CONFIGURE_ARGS && |
slaxemulator@12595 | 34 make -j1 && make -j1 DESTDIR=$DESTDIR install |
erjo@4727 | 35 } |
erjo@4727 | 36 |
erjo@4727 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4727 | 38 genpkg_rules() |
erjo@4727 | 39 { |
samuel_trassare@11788 | 40 mkdir -p $fs/usr/share/glib-2.0 $fs/usr/lib $fs/usr/share/applications |
erjo@4727 | 41 cp -a $_pkg/usr/bin $fs/usr |
erjo@4727 | 42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@4727 | 43 cp -a $_pkg/usr/lib/evince $fs/usr/lib |
erjo@4727 | 44 |
erjo@4727 | 45 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share |
erjo@4727 | 46 cp -a $_pkg/usr/share/icons $fs/usr/share |
erjo@4727 | 47 cp -a $_pkg/usr/share/evince $fs/usr/share |
pascal@10912 | 48 cp -a $_pkg/usr/share/glib-2.0/schemas $fs/usr/share/glib-2.0 |
samuel_trassare@11789 | 49 cp -a $stuff/evince.desktop $fs/usr/share/applications |
erjo@4727 | 50 |
erjo@4727 | 51 # Removing unwanted files |
erjo@4727 | 52 find $fs/usr/lib -name "*.*a" -exec rm -rf {} \; |
erjo@4727 | 53 } |
pascal@10912 | 54 |
pascal@10912 | 55 # Post install/remove commands for Tazpkg. |
pascal@10912 | 56 post_install() |
pascal@10912 | 57 { |
pascal@10912 | 58 echo "Processing post-install commands..." |
pascal@10912 | 59 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas |
pascal@10912 | 60 } |
pascal@10912 | 61 |
pascal@10912 | 62 post_remove() |
pascal@10912 | 63 { |
pascal@10912 | 64 echo "Processing post-remove commands..." |
pascal@10912 | 65 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas |
pascal@10912 | 66 } |