wok annotate epdfview/receipt @ rev 24050
updated i3 and i3-man (4.5.1 -> 4.19.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 13 14:58:33 2021 +0100 (2021-05-13) |
parents | e3f377fbc5f0 |
children | 7e911016a644 |
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" |
Hans-G?nter@21133 | 6 TAGS="pdf viewer" |
pankso@46 | 7 SHORT_DESC="Lightweight PDF document viewer using Poppler." |
pankso@46 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@21133 | 10 WEB_SITE="https://github.com/jristz/epdfview" |
Hans-G?nter@21133 | 11 |
pankso@46 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@46 | 13 WGET_URL="http://trac.emma-soft.com/epdfview/chrome/site/releases/$TARBALL" |
pankso@46 | 14 |
slaxemulator@11103 | 15 DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base" |
pascal@13836 | 16 BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev" |
slaxemulator@11103 | 17 |
pankso@46 | 18 # Rules to configure and make the package. |
pankso@46 | 19 compile_rules() |
pankso@46 | 20 { |
psychomaniak@17853 | 21 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx |
psychomaniak@18209 | 22 sed -i 's/firefox/browser/g' src/Config.cxx |
pascal@12759 | 23 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \ |
pascal@12759 | 24 src/epdfview.h |
pascal@12759 | 25 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
gokhlayeh@11491 | 26 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch |
al@19475 | 27 patch -p1 -i $stuff/no-stock-icons.patch |
Hans-G?nter@21133 | 28 |
Hans-G?nter@21133 | 29 ./configure \ |
Hans-G?nter@21133 | 30 --without-cups \ |
pascal@1514 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@21133 | 32 make -j 1 && |
Hans-G?nter@21133 | 33 make install |
Hans-G?nter@21133 | 34 |
al@19475 | 35 cp -f $stuff/*.desktop $install/usr/share/applications |
pankso@46 | 36 } |
pankso@46 | 37 |
pankso@46 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@46 | 39 genpkg_rules() |
pankso@46 | 40 { |
al@19475 | 41 cook_copy_files epdfview *.desktop *.xml |
Hans-G?nter@21133 | 42 |
al@19475 | 43 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps |
Hans-G?nter@21133 | 44 |
al@19475 | 45 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \ |
al@19475 | 46 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png |
pankso@46 | 47 } |