wok view epdfview/receipt @ rev 18411
open-vm-tools: more diag
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 16:17:57 2015 +0000 (2015-09-19) |
parents | 1b6b2ce17870 |
children | 41fccfd3180c |
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 ./configure \
27 --without-cups \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/share/epdfview $fs/usr/share
38 find $fs -name 'icon*[83]*' -delete
39 }