wok-6.x annotate epdfview-cups/receipt @ rev 23221

ghostscript: inserted include statement
author Hans-G?nter Theisgen
date Mon Mar 23 14:33:17 2020 +0100 (2020-03-23)
parents 41fccfd3180c
children b569b85b0fb9
rev   line source
pascal@1693 1 # SliTaz package receipt.
pascal@1693 2
pascal@1693 3 PACKAGE="epdfview-cups"
slaxemulator@11103 4 VERSION="0.1.8"
pascal@1693 5 CATEGORY="office"
pascal@1693 6 SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups."
pascal@1693 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@1693 9 SOURCE="epdfview"
pascal@1693 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@20673 11 WEB_SITE="https://github.com/jristz/epdfview"
pascal@1693 12 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
pascal@1693 13 PROVIDE="epdfview:cups"
pascal@1693 14
slaxemulator@11103 15 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
slaxemulator@11103 16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
slaxemulator@11103 17
pascal@1693 18 # Rules to configure and make the package.
pascal@1693 19 compile_rules()
pascal@1693 20 {
psychomaniak@18209 21 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
pascal@12759 22 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
pascal@12759 23 src/epdfview.h
pascal@12759 24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
pascal@15346 25 # cups 1.6 support
pascal@15346 26 sed -i -e '/ippNew/{NNNNNNNNNd}' \
pascal@15346 27 -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \
pascal@15346 28 -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \
pascal@15346 29 -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \
pascal@15346 30 src/PrintPter.cxx
al@19475 31 patch -p1 -i $stuff/no-stock-icons.patch
pascal@1693 32 ./configure \
pascal@1693 33 --with-cups \
pascal@1693 34 $CONFIGURE_ARGS &&
slaxemulator@11103 35 make && make install
al@19475 36 cp -f $stuff/*.desktop $install/usr/share/applications
pascal@1693 37 }
pascal@1693 38
pascal@1693 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1693 40 genpkg_rules()
pascal@1693 41 {
al@19475 42 cook_copy_files epdfview *.desktop *.xml
al@19475 43 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
al@19475 44 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
al@19475 45 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
pascal@1693 46 }