wok-6.x view epdfview/receipt @ rev 24078
gst-plugins-bad, gst-plugins-good, gst-plugins-base-1.0: typo (!)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 08 16:53:11 2021 +0000 (2021-07-08) |
parents | 4d8d92cb0a0e |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="epdfview"
4 VERSION="0.1.8"
5 CATEGORY="office"
6 TAGS="pdf viewer"
7 SHORT_DESC="Lightweight PDF document viewer using Poppler."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/jristz/epdfview"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://trac.emma-soft.com/epdfview/chrome/site/releases/$TARBALL"
15 DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base"
16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev"
18 current_version()
19 {
20 wget -O - $WEB_SITE/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
28 sed -i 's/firefox/browser/g' src/Config.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 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch
33 patch -p1 -i $stuff/no-stock-icons.patch
35 ./configure \
36 --without-cups \
37 $CONFIGURE_ARGS &&
38 make -j 1 &&
39 make install
41 cp -f $stuff/*.desktop $install/usr/share/applications
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cook_copy_files epdfview *.desktop *.xml
49 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 }