wok-current annotate epdfview-cups/receipt @ rev 2702

Up: locale-* (1.1) - Include more apps and use the last glibc
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 22 18:26:22 2009 +0200 (2009-04-22)
parents ecb146e32c08
children 6e90579538d6
rev   line source
pascal@1693 1 # SliTaz package receipt.
pascal@1693 2
pascal@1693 3 PACKAGE="epdfview-cups"
pankso@2360 4 VERSION="0.1.7"
pascal@1693 5 CATEGORY="office"
pascal@1693 6 SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups."
pascal@1693 7 MAINTAINER="pankso@slitaz.org"
pascal@2514 8 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage"
pascal@1693 9 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
pascal@1693 10 SOURCE="epdfview"
pascal@1693 11 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1693 12 WEB_SITE="http://trac.emma-soft.com/epdfview/"
pascal@1693 13 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
pascal@1693 14 PROVIDE="epdfview:cups"
pascal@1693 15
pascal@1693 16 # Rules to configure and make the package.
pascal@1693 17 compile_rules()
pascal@1693 18 {
pascal@1693 19 cd $src
pascal@1693 20 ./configure \
pascal@1693 21 --prefix=/usr \
pascal@1693 22 --infodir=/usr/share/info \
pascal@1693 23 --mandir=/usr/share/man \
pascal@1693 24 --with-cups \
pascal@1693 25 $CONFIGURE_ARGS &&
pascal@1693 26 make &&
pascal@1693 27 make DESTDIR=$PWD/_pkg install
pascal@1693 28 }
pascal@1693 29
pascal@1693 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1693 31 genpkg_rules()
pascal@1693 32 {
pascal@1693 33 mkdir -p $fs/usr/share/pixmaps
pascal@1693 34 cp -a $_pkg/usr/bin $fs/usr
pascal@1693 35 cp -a $_pkg/usr/share/epdfview $fs/usr/share
pascal@1693 36 cd $fs/usr/share/pixmaps
pascal@1693 37 rm ../epdfview/pixmaps/icon_epdfview-24.png
pascal@1693 38 rm ../epdfview/pixmaps/icon_epdfview-48.png
pascal@1693 39 ln -s ../epdfview/pixmaps/icon_epdfview-32.png epdfview.png
pascal@1693 40 }
pascal@1693 41
pascal@1693 42 # Pre install commands for Tazpkg.
pascal@1693 43 pre_install()
pascal@1693 44 {
pascal@1693 45 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
pascal@1693 46 }