wok-current view epdfview-cups/receipt @ rev 8737

libsvn: improve depends.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Feb 19 21:38:24 2011 +0100 (2011-02-19)
parents 6e90579538d6
children 129bb5b11a7e
line source
1 # SliTaz package receipt.
3 PACKAGE="epdfview-cups"
4 VERSION="0.1.7"
5 CATEGORY="office"
6 SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
9 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
10 SOURCE="epdfview"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://trac.emma-soft.com/epdfview/"
13 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
14 PROVIDE="epdfview:cups"
15 SRC_WANTED="$SOURCE"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 --with-cups \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg 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 $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/share/epdfview $fs/usr/share
37 cd $fs/usr/share/pixmaps
38 rm ../epdfview/pixmaps/icon_epdfview-24.png
39 rm ../epdfview/pixmaps/icon_epdfview-48.png
40 ln -s ../epdfview/pixmaps/icon_epdfview-32.png epdfview.png
41 }
43 # Pre install commands for Tazpkg.
44 pre_install()
45 {
46 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
47 }