wok annotate epdfview/receipt @ rev 25331
updated stella (6.6 -> 6.7)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 23 11:20:01 2022 +0100 (2022-07-23) |
parents | e1e1678c5265 |
children |
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" |
pascal@24974 | 10 WEB_SITE="https://github.com/JotaRandom/epdfview" |
Hans-G?nter@21133 | 11 |
pankso@46 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24978 | 13 WGET_URL="https://github.com/jristz/epdfview/archive/$VERSION.tar.gz" |
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 |
pascal@24069 | 18 current_version() |
pascal@24069 | 19 { |
pascal@24299 | 20 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24069 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24069 | 22 } |
pascal@24069 | 23 |
pankso@46 | 24 # Rules to configure and make the package. |
pankso@46 | 25 compile_rules() |
pankso@46 | 26 { |
psychomaniak@17853 | 27 sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx |
psychomaniak@18209 | 28 sed -i 's/firefox/browser/g' src/Config.cxx |
pascal@12759 | 29 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \ |
pascal@12759 | 30 src/epdfview.h |
pascal@12759 | 31 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
gokhlayeh@11491 | 32 patch -Np1 -i $stuff/0001-When-using-Poppler-0.17.0-I-needed-to-swap-the-blue-.patch |
al@19475 | 33 patch -p1 -i $stuff/no-stock-icons.patch |
Hans-G?nter@21133 | 34 |
Hans-G?nter@21133 | 35 ./configure \ |
Hans-G?nter@21133 | 36 --without-cups \ |
pascal@1514 | 37 $CONFIGURE_ARGS && |
Hans-G?nter@21133 | 38 make -j 1 && |
Hans-G?nter@21133 | 39 make install |
Hans-G?nter@21133 | 40 |
al@19475 | 41 cp -f $stuff/*.desktop $install/usr/share/applications |
pankso@46 | 42 } |
pankso@46 | 43 |
pankso@46 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@46 | 45 genpkg_rules() |
pankso@46 | 46 { |
al@19475 | 47 cook_copy_files epdfview *.desktop *.xml |
Hans-G?nter@21133 | 48 |
al@19475 | 49 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps |
Hans-G?nter@21133 | 50 |
al@19475 | 51 cp $install/usr/share/epdfview/pixmaps/icon_epdfview-48.png \ |
al@19475 | 52 $fs/usr/share/icons/hicolor/48x48/apps/epdfview.png |
pankso@46 | 53 } |