wok-6.x view epdfview-cups/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents a5587b626515
children 49dd2dff0330
line source
1 # SliTaz package receipt.
3 PACKAGE="epdfview-cups"
4 VERSION="0.1.8"
5 CATEGORY="office"
6 SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="epdfview"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://trac.emma-soft.com/epdfview/"
12 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
13 PROVIDE="epdfview:cups"
15 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
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 ./configure \
26 --with-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 }
41 # Pre install commands for Tazpkg.
42 pre_install()
43 {
44 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
45 }