wok-current view epdfview/receipt @ rev 19147
web server: stop running server in pre_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 23 11:34:06 2016 +0200 (2016-05-23) |
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 }