wok view epdfview/receipt @ rev 16711
Up: tzdata (2014d)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed May 28 22:28:18 2014 +0300 (2014-05-28) |
parents | f6cec36345bb |
children | 1b6b2ce17870 |
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 cd $src
21 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
22 src/epdfview.h
23 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
24 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch
25 ./configure \
26 --without-cups \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/pixmaps
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/share/epdfview $fs/usr/share
37 cd $fs/usr/share/pixmaps
38 ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png
39 }