wok-next view epdfview-cups/receipt @ rev 15909

Up: lxpanel (0.6.1) and remove dep on libwnck --> lxpanel-extra (save space on core ISO)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 15 13:07:07 2014 +0100 (2014-02-15)
parents 380ffe05937a
children feb2e0c63d21
line source
1 # SliTaz package receipt.
3 PACKAGE="epdfview-cups"
4 VERSION="0.1.8"
5 CATEGORY="office"
6 SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="epdfview"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://trac.emma-soft.com/epdfview/"
12 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
13 PROVIDE="epdfview:cups"
15 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
23 src/epdfview.h
24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
25 # cups 1.6 support
26 sed -i -e '/ippNew/{NNNNNNNNNd}' \
27 -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \
28 -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \
29 -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \
30 src/PrintPter.cxx
31 ./configure \
32 --with-cups \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/pixmaps
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/share/epdfview $fs/usr/share
43 cd $fs/usr/share/pixmaps
44 ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png
45 }
47 # Pre install commands for Tazpkg.
48 pre_install()
49 {
50 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
51 }