wok annotate epdfview-cups/receipt @ rev 13661
ccid: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 21 21:52:14 2012 +0100 (2012-11-21) |
parents | 56cca8858703 |
children | 380ffe05937a |
rev | line source |
---|---|
pascal@1693 | 1 # SliTaz package receipt. |
pascal@1693 | 2 |
pascal@1693 | 3 PACKAGE="epdfview-cups" |
slaxemulator@11103 | 4 VERSION="0.1.8" |
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@1693 | 8 SOURCE="epdfview" |
pascal@1693 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1693 | 10 WEB_SITE="http://trac.emma-soft.com/epdfview/" |
pascal@1693 | 11 WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL" |
pascal@1693 | 12 PROVIDE="epdfview:cups" |
pascal@1693 | 13 |
slaxemulator@11103 | 14 DEPENDS="gtk+ poppler glib libpng cups xorg-libXdamage gcc-lib-base libcomerr3" |
slaxemulator@11103 | 15 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev" |
slaxemulator@11103 | 16 |
pascal@1693 | 17 # Rules to configure and make the package. |
pascal@1693 | 18 compile_rules() |
pascal@1693 | 19 { |
pascal@1693 | 20 cd $src |
pascal@12759 | 21 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \ |
pascal@12759 | 22 src/epdfview.h |
pascal@12759 | 23 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
pascal@1693 | 24 ./configure \ |
pascal@1693 | 25 --with-cups \ |
pascal@1693 | 26 $CONFIGURE_ARGS && |
slaxemulator@11103 | 27 make && make 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 |
slaxemulator@11103 | 34 cp -a $install/usr/bin $fs/usr |
slaxemulator@11103 | 35 cp -a $install/usr/share/epdfview $fs/usr/share |
pascal@1693 | 36 cd $fs/usr/share/pixmaps |
slaxemulator@11103 | 37 ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png |
pascal@1693 | 38 } |
pascal@1693 | 39 |
pascal@1693 | 40 # Pre install commands for Tazpkg. |
pascal@1693 | 41 pre_install() |
pascal@1693 | 42 { |
pascal@1693 | 43 [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview |
pascal@1693 | 44 } |