wok view epdfview/receipt @ rev 25451
Add bluez-gatttool
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Sep 15 07:47:22 2022 +0000 (2022-09-15) |
parents | e1e1678c5265 |
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 current_version()
19 {
20 wget -O - $WEB_SITE/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx
28 sed -i 's/firefox/browser/g' src/Config.cxx
29 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \
30 src/epdfview.h
31 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
32 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch
33 patch -p1 -i $stuff/no-stock-icons.patch
35 ./configure \
36 --without-cups \
37 $CONFIGURE_ARGS &&
38 make -j 1 &&
39 make install
41 cp -f $stuff/*.desktop $install/usr/share/applications
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cook_copy_files epdfview *.desktop *.xml
49 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps
51 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \
52 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png
53 }