wok-next view epdfview/receipt @ rev 21540
updated cantarell-fonts (0.111 -> 0.201)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jun 21 16:26:44 2020 +0100 (2020-06-21) |
parents | 5669e8b3be70 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="epdfview"
4 VERSION="0.1.8"
5 CATEGORY="office"
6 SHORT_DESC="Lightweight PDF document viewer using Poppler"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/jristz/epdfview"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/jristz/epdfview/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="gtk2-dev poppler-dev cairo-dev"
16 compile_rules() {
17 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
18 sed -i 's/firefox/browser/g' src/Config.cxx
19 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
20 src/epdfview.h
21 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
23 ./configure \
24 --without-cups \
25 $CONFIGURE_ARGS &&
26 make &&
27 make install || return 1
29 cp -f $stuff/*.desktop $install/usr/share/applications
30 }
32 genpkg_rules() {
33 copy epdfview *.desktop *.xml
34 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
35 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
36 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
37 DEPENDS="gtk2 libpoppler glib libpng libxdamage gcc-lib-base"
38 TAGS="pdf viewer"
39 }