wok-current view epdfview/receipt @ rev 20670
Up speex (1.2.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 21 15:15:42 2019 +0100 (2019-01-21) |
parents | feb2e0c63d21 |
children | e3f377fbc5f0 |
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="http://trac.emma-soft.com/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 }