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

Up aria2 (1.33.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 19:28:56 2017 +0200 (2017-10-22)
parents f463de72afe3
children dd145c435e4b
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, color invert."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/jristz/epdfview/"
11 WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz"
12 PROVIDE="epdfview:cups"
14 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
15 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
21 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
22 src/epdfview.h
23 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
24 # cups 1.6 support
25 sed -i -e '/ippNew/{NNNNNNNNNd}' \
26 -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \
27 -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \
28 -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \
29 src/PrintPter.cxx
30 patch -p1 -i $stuff/no-stock-icons.patch
31 ./configure \
32 --with-cups \
33 $CONFIGURE_ARGS &&
34 make && make install
35 cp -f $stuff/*.desktop $install/usr/share/applications
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 copy epdfview *.desktop *.xml
42 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
43 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
44 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
45 }