# SliTaz package receipt. PACKAGE="epdfview" VERSION="0.1.8" CATEGORY="office" TAGS="pdf viewer" SHORT_DESC="Lightweight PDF document viewer using Poppler." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/JotaRandom/epdfview" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/jristz/epdfview/archive/$VERSION.tar.gz" DEPENDS="gtk+ poppler glib libpng xorg-libXdamage gcc-lib-base" BUILD_DEPENDS="gtk+-dev poppler-dev poppler cairo-dev" current_version() { wget -O - $WEB_SITE/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { sed -i 's/FORMAT_RGB24/FORMAT_ARGB32/g' src/PDFDocument.cxx sed -i 's/firefox/browser/g' src/Config.cxx sed -i 's//&\n#include \n#define g_fopen fopen/' \ src/epdfview.h find . -name '*.[ch]*' | xargs sed -i 's|