# SliTaz package receipt. PACKAGE="evince" VERSION="2.32.0" CATEGORY="office" SHORT_DESC="Document viewer for Gnome" MAINTAINER="erjo@slitaz.org" DEPENDS="lcms poppler tiff dbus-glib glib-dev util-linux-ng-uuid" BUILD_DEPENDS="gnome-doc-utils-dev docbook-xml \ gnome-icon-theme gtk+-dev intltool lcms-dev util-linux-ng-uuid-dev" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://projects.gnome.org/evince/" WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/evince/${VERSION%.*}/${TARBALL}" TAGS="viewer pdf tiff ps postscript dvi" # Rules to configure and make the package. compile_rules() { cd $src ./configure --prefix=/usr \ --libexecdir=/usr/lib/$PACKAGE \ --disable-nautilus \ --disable-scrollkeeper \ --disable-comics \ --without-gconf \ --without-keyring \ --disable-schemas-install \ --disable-gtk-doc-html \ --with-help-formats=none \ --disable-help \ $CONFIGURE_ARGS && make -j1 && make -j1 DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/glib-2.0 $fs/usr/lib $fs/usr/share/applications cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/lib/evince $fs/usr/lib cp -a $_pkg/usr/share/dbus-1 $fs/usr/share cp -a $_pkg/usr/share/icons $fs/usr/share cp -a $_pkg/usr/share/evince $fs/usr/share cp -a $_pkg/usr/share/glib-2.0/schemas $fs/usr/share/glib-2.0 cp -a $stuff/evince.desktop $fs/usr/share/applications # Removing unwanted files find $fs/usr/lib -name "*.*a" -exec rm -rf {} \; } # Post install/remove commands for Tazpkg. post_install() { echo "Processing post-install commands..." chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas } post_remove() { echo "Processing post-remove commands..." chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas }