wok view epdfview/receipt @ rev 14522
Up: transmission (2.52)
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri May 17 03:18:43 2013 +0000 (2013-05-17) |
parents | a5587b626515 |
children | 380ffe05937a |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://trac.emma-soft.com/epdfview/"
10 WGET_URL="http://trac.emma-soft.com/epdfview/chrome/site/releases/$TARBALL"
11 TAGS="pdf viewer"
13 DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base"
14 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
21 src/epdfview.h
22 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
23 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch
24 ./configure \
25 --without-cups \
26 $CONFIGURE_ARGS &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/pixmaps
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/share/epdfview $fs/usr/share
36 cd $fs/usr/share/pixmaps
37 ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png
38 }