wok-6.x view epdfview/receipt @ rev 20855
updated dtach (0.8 -> 0.9)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 21 16:54:46 2019 +0100 (2019-02-21) |
parents | 41fccfd3180c |
children | 4d8d92cb0a0e |
line source
1 # SliTaz package receipt.
3 PACKAGE="epdfview"
4 VERSION="0.1.8"
5 CATEGORY="office"
6 SHORT_DESC="Lightweight PDF document viewer using Poppler."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/jristz/epdfview"
11 WGET_URL="http://trac.emma-soft.com/epdfview/chrome/site/releases/$TARBALL"
12 TAGS="pdf viewer"
14 DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base"
15 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
21 sed -i 's/firefox/browser/g' src/Config.cxx
22 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
23 src/epdfview.h
24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
25 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch
26 patch -p1 -i $stuff/no-stock-icons.patch
27 ./configure \
28 --without-cups \
29 $CONFIGURE_ARGS &&
30 make && make install
31 cp -f $stuff/*.desktop $install/usr/share/applications
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_files epdfview *.desktop *.xml
38 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
39 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
40 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
41 }