wok-next view epdfview-cups/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 5669e8b3be70 |
children |
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/jristz/epdfview/"
10 REPOLOGY="epdfview"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz"
15 BUILD_DEPENDS="gtk2-dev poppler-dev cups-dev"
17 compile_rules() {
18 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
19 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
20 src/epdfview.h
21 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
22 # cups 1.6 support
23 sed \
24 -e '/ippNew/{NNNNNNNNNd}' \
25 -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \
26 -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \
27 -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \
28 -i src/PrintPter.cxx
30 ./configure \
31 --with-cups \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install || return 1
36 cp -f $stuff/*.desktop $install/usr/share/applications
37 }
39 genpkg_rules() {
40 copy epdfview *.desktop *.xml
41 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
42 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
43 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
44 DEPENDS="gtk2 libpoppler glib libpng cups libxdamage gcc-lib-base libcomerr3"
45 PROVIDE="epdfview:cups"
46 }