wok-current view epdfview/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (2 months ago) |
parents | 00e3b45c063b |
children |
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/JotaRandom/epdfview"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/jristz/epdfview/archive/$VERSION.tar.gz"
15 DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base"
16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev"
18 HOST_ARCH="i486 x86_64"
20 current_version()
21 {
22 wget -O - $WEB_SITE/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
30 sed -i 's/firefox/browser/g' src/Config.cxx
31 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
32 src/epdfview.h
33 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
34 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch
35 patch -p1 -i $stuff/no-stock-icons.patch
37 ./configure \
38 --without-cups \
39 $CONFIGURE_ARGS &&
40 make -j 1 &&
41 make install
43 cp -f $stuff/*.desktop $install/usr/share/applications
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_files epdfview *.desktop *.xml
51 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
53 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
54 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
55 }