wok annotate epdfview-cups/receipt @ rev 16715

libfm: add forgotten modules and Sakura support, remove garbage MIME info; pcmanfm: use full translated original .desktop files.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 29 18:52:28 2014 +0300 (2014-05-29)
parents 380ffe05937a
children feb2e0c63d21
rev   line source
pascal@1693 1 # SliTaz package receipt.
pascal@1693 2
pascal@1693 3 PACKAGE="epdfview-cups"
slaxemulator@11103 4 VERSION="0.1.8"
pascal@1693 5 CATEGORY="office"
pascal@1693 6 SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups."
pascal@1693 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@1693 9 SOURCE="epdfview"
pascal@1693 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1693 11 WEB_SITE="http://trac.emma-soft.com/epdfview/"
pascal@1693 12 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
pascal@1693 13 PROVIDE="epdfview:cups"
pascal@1693 14
slaxemulator@11103 15 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
slaxemulator@11103 16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
slaxemulator@11103 17
pascal@1693 18 # Rules to configure and make the package.
pascal@1693 19 compile_rules()
pascal@1693 20 {
pascal@1693 21 cd $src
pascal@12759 22 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
pascal@12759 23 src/epdfview.h
pascal@12759 24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
pascal@15346 25 # cups 1.6 support
pascal@15346 26 sed -i -e '/ippNew/{NNNNNNNNNd}' \
pascal@15346 27 -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \
pascal@15346 28 -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \
pascal@15346 29 -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \
pascal@15346 30 src/PrintPter.cxx
pascal@1693 31 ./configure \
pascal@1693 32 --with-cups \
pascal@1693 33 $CONFIGURE_ARGS &&
slaxemulator@11103 34 make && make install
pascal@1693 35 }
pascal@1693 36
pascal@1693 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1693 38 genpkg_rules()
pascal@1693 39 {
pascal@1693 40 mkdir -p $fs/usr/share/pixmaps
slaxemulator@11103 41 cp -a $install/usr/bin $fs/usr
slaxemulator@11103 42 cp -a $install/usr/share/epdfview $fs/usr/share
pascal@1693 43 cd $fs/usr/share/pixmaps
slaxemulator@11103 44 ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png
pascal@1693 45 }
pascal@1693 46
pascal@1693 47 # Pre install commands for Tazpkg.
pascal@1693 48 pre_install()
pascal@1693 49 {
pascal@1693 50 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
pascal@1693 51 }