wok-next annotate epdfview/receipt @ rev 20113
Add some bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 30 09:29:31 2017 +0100 (2017-10-30) |
parents | 41fccfd3180c |
children | dd145c435e4b |
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 { |
psychomaniak@17853 | 20 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx |
psychomaniak@18209 | 21 sed -i 's/firefox/browser/g' src/Config.cxx |
pascal@12759 | 22 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \ |
pascal@12759 | 23 src/epdfview.h |
pascal@12759 | 24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
gokhlayeh@11491 | 25 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch |
al@19475 | 26 patch -p1 -i $stuff/no-stock-icons.patch |
pankso@671 | 27 ./configure \ |
sygne@1681 | 28 --without-cups \ |
pascal@1514 | 29 $CONFIGURE_ARGS && |
slaxemulator@11103 | 30 make && make install |
al@19475 | 31 cp -f $stuff/*.desktop $install/usr/share/applications |
pankso@46 | 32 } |
pankso@46 | 33 |
pankso@46 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@46 | 35 genpkg_rules() |
pankso@46 | 36 { |
al@19783 | 37 copy epdfview *.desktop *.xml |
al@19475 | 38 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps |
al@19475 | 39 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \ |
al@19475 | 40 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png |
pankso@46 | 41 } |