wok-current view epdfview-cups/receipt @ rev 13169
aircrack-ng: Add WANTED package called aircrack-ng-scripts.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Jul 30 04:24:03 2012 +0000 (2012-07-30) |
parents | 56cca8858703 |
children | 380ffe05937a |
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 SOURCE="epdfview"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://trac.emma-soft.com/epdfview/"
11 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL"
12 PROVIDE="epdfview:cups"
14 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3"
15 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
22 src/epdfview.h
23 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
24 ./configure \
25 --with-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 }
40 # Pre install commands for Tazpkg.
41 pre_install()
42 {
43 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
44 }