wok-6.x annotate fbpdf-mupdf/receipt @ rev 25095

Up libkeybinder (0.3.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 18 13:48:16 2022 +0000 (2022-06-18)
parents b9659e3c2111
children
rev   line source
al@14429 1 # SliTaz package receipt.
al@14429 2
al@14429 3 PACKAGE="fbpdf-mupdf"
al@14429 4 PROVIDE="fbpdf"
al@14429 5 VERSION="20130411"
al@14429 6 CATEGORY="multimedia"
al@14429 7 SHORT_DESC="PDF reader in frame buffer (mupdf based)"
al@14429 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14853 9 LICENSE="BSD"
pascal@24974 10 WEB_SITE="https://repo.or.cz/fbpdf.git"
al@14429 11 TARBALL="fbpdf-$VERSION.tar.gz"
al@14429 12 WGET_URL="$WEB_SITE/snapshot/262662b256aa261c7eb5b06b4018591ce2dd6d44.tar.gz"
al@14429 13 TAGS="pdf"
al@14429 14
al@14429 15 DEPENDS="bzlib djvulibre freetype jbig2dec openjpeg"
al@14429 16 BUILD_DEPENDS="djvulibre-dev mupdf-dev"
al@14429 17
pascal@24545 18 # What is the latest version available today?
pascal@24545 19 current_version()
pascal@24545 20 {
pascal@24545 21 wget -O - $WEB_SITE/shortlog 2>/dev/null | \
pascal@24545 22 sed '/<td title=/!d;s|.*<i>||;s|</.*||;s|-||g;q'
pascal@24545 23 }
pascal@24545 24
al@14429 25 # Rules to configure and make the package.
al@14429 26 compile_rules()
al@14429 27 {
pascal@16624 28 # mupdf 1.4 patch
pascal@16624 29 sed -i 's|^CFLAGS.*|& -I/usr/include/mupdf|;s|lfitz|lmupdf|' Makefile
al@14429 30 mkdir $DESTDIR
al@14429 31 make &&
al@14429 32 cp fbpdf fbdjvu $DESTDIR
al@14429 33 }
al@14429 34
al@14429 35 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14429 36 genpkg_rules()
al@14429 37 {
al@14429 38 mkdir -p $fs/usr/bin
al@14429 39 cp $install/fb* $fs/usr/bin
al@14429 40 }