wok-6.x view epdfview-cups/receipt @ rev 18893
Update apache post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 13 10:39:15 2016 +0100 (2016-02-13) |
parents | feb2e0c63d21 |
children | 41fccfd3180c |
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 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
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 }