wok view epdfview/receipt @ rev 23114

updated libunwind and libunwind-dev (1.2.1 -> 1.3.1)
author Hans-G?nter Theisgen
date Thu Mar 12 16:41:11 2020 +0100 (2020-03-12)
parents e3f377fbc5f0
children 7e911016a644
line source
1 # SliTaz package receipt.
3 PACKAGE="epdfview"
4 VERSION="0.1.8"
5 CATEGORY="office"
6 TAGS="pdf viewer"
7 SHORT_DESC="Lightweight PDF document viewer using Poppler."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/jristz/epdfview"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://trac.emma-soft.com/epdfview/chrome/site/releases/$TARBALL"
15 DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base"
16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
22 sed -i 's/firefox/browser/g' src/Config.cxx
23 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
24 src/epdfview.h
25 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
26 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch
27 patch -p1 -i $stuff/no-stock-icons.patch
29 ./configure \
30 --without-cups \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make install
35 cp -f $stuff/*.desktop $install/usr/share/applications
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cook_copy_files epdfview *.desktop *.xml
43 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
45 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
46 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
47 }