wok-6.x annotate epdfview/receipt @ rev 17718
slitaz-tools-boxes: add bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 05 11:48:47 2015 +0100 (2015-03-05) |
parents | f6cec36345bb |
children | 1b6b2ce17870 |
rev | line source |
---|---|
pankso@46 | 1 # SliTaz package receipt. |
pankso@46 | 2 |
pankso@46 | 3 PACKAGE="epdfview" |
slaxemulator@11103 | 4 VERSION="0.1.8" |
pankso@205 | 5 CATEGORY="office" |
pankso@46 | 6 SHORT_DESC="Lightweight PDF document viewer using Poppler." |
pankso@46 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@46 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@46 | 10 WEB_SITE="http://trac.emma-soft.com/epdfview/" |
pankso@46 | 11 WGET_URL="http://trac.emma-soft.com/epdfview/chrome/site/releases/$TARBALL" |
jozee@4935 | 12 TAGS="pdf viewer" |
pankso@46 | 13 |
slaxemulator@11103 | 14 DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base" |
pascal@13836 | 15 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev" |
slaxemulator@11103 | 16 |
pankso@46 | 17 # Rules to configure and make the package. |
pankso@46 | 18 compile_rules() |
pankso@46 | 19 { |
pankso@46 | 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|' |
gokhlayeh@11491 | 24 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch |
pankso@671 | 25 ./configure \ |
sygne@1681 | 26 --without-cups \ |
pascal@1514 | 27 $CONFIGURE_ARGS && |
slaxemulator@11103 | 28 make && make install |
pankso@46 | 29 } |
pankso@46 | 30 |
pankso@46 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@46 | 32 genpkg_rules() |
pankso@46 | 33 { |
pankso@671 | 34 mkdir -p $fs/usr/share/pixmaps |
slaxemulator@11103 | 35 cp -a $install/usr/bin $fs/usr |
slaxemulator@11103 | 36 cp -a $install/usr/share/epdfview $fs/usr/share |
pankso@682 | 37 cd $fs/usr/share/pixmaps |
slaxemulator@11103 | 38 ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-32.png epdfview.png |
pankso@46 | 39 } |
pankso@46 | 40 |