wok-6.x view epdfview-cups/receipt @ rev 22369

ncursesw: corrected syntax in run_tic.sh
author Hans-G?nter Theisgen
date Mon Nov 25 09:00:47 2019 +0100 (2019-11-25)
parents 41fccfd3180c
children b569b85b0fb9
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="https://github.com/jristz/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 patch -p1 -i $stuff/no-stock-icons.patch
32 ./configure \
33 --with-cups \
34 $CONFIGURE_ARGS &&
35 make && make install
36 cp -f $stuff/*.desktop $install/usr/share/applications
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_files epdfview *.desktop *.xml
43 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
44 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
45 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
46 }