wok-6.x annotate epdfview-cups/receipt @ rev 25233
updated python-requests (2.23.0 -> 2.27.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 17:27:05 2022 +0100 (2022-07-13) |
parents | e1e1678c5265 |
children |
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@24974 | 11 WEB_SITE="https://github.com/JotaRandom/epdfview" |
pascal@24978 | 12 WGET_URL="https://github.com/jristz/epdfview/archive/$VERSION.tar.gz" |
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@24308 | 18 # What is the latest version available today? |
pascal@24308 | 19 current_version() |
pascal@24308 | 20 { |
pascal@24308 | 21 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 23 } |
pascal@24308 | 24 |
pascal@1693 | 25 # Rules to configure and make the package. |
pascal@1693 | 26 compile_rules() |
pascal@1693 | 27 { |
psychomaniak@18209 | 28 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx |
pascal@12759 | 29 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \ |
pascal@12759 | 30 src/epdfview.h |
pascal@12759 | 31 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
pascal@15346 | 32 # cups 1.6 support |
pascal@15346 | 33 sed -i -e '/ippNew/{NNNNNNNNNd}' \ |
pascal@15346 | 34 -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \ |
pascal@15346 | 35 -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \ |
pascal@15346 | 36 -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \ |
pascal@15346 | 37 src/PrintPter.cxx |
al@19475 | 38 patch -p1 -i $stuff/no-stock-icons.patch |
pascal@1693 | 39 ./configure \ |
pascal@1693 | 40 --with-cups \ |
pascal@1693 | 41 $CONFIGURE_ARGS && |
slaxemulator@11103 | 42 make && make install |
al@19475 | 43 cp -f $stuff/*.desktop $install/usr/share/applications |
pascal@1693 | 44 } |
pascal@1693 | 45 |
pascal@1693 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1693 | 47 genpkg_rules() |
pascal@1693 | 48 { |
al@19475 | 49 cook_copy_files epdfview *.desktop *.xml |
al@19475 | 50 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps |
al@19475 | 51 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \ |
al@19475 | 52 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png |
pascal@1693 | 53 } |