wok-current view epdfview-cups/receipt @ rev 25567

use wxWidgets 2.8 for amule
author Hans-G?nter Theisgen
date Fri May 12 17:54:34 2023 +0100 (17 months ago)
parents e1e1678c5265
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."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="epdfview"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/JotaRandom/epdfview"
12 WGET_URL="https://github.com/jristz/epdfview/archive/$VERSION.tar.gz"
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
29 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
30 src/epdfview.h
31 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
32 # cups 1.6 support
33 sed -i -e '/ippNew/{NNNNNNNNNd}' \
34 -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \
35 -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \
36 -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \
37 src/PrintPter.cxx
38 patch -p1 -i $stuff/no-stock-icons.patch
39 ./configure \
40 --with-cups \
41 $CONFIGURE_ARGS &&
42 make && make install
43 cp -f $stuff/*.desktop $install/usr/share/applications
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_files epdfview *.desktop *.xml
50 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
51 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
52 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
53 }