wok annotate djvulibre/receipt @ rev 25421

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 10 07:02:08 2022 +0000 (22 months ago)
parents 90e94ef08776
children b0069c845544
rev   line source
al@14429 1 # SliTaz package receipt.
al@14429 2
al@14429 3 PACKAGE="djvulibre"
Hans-G?nter@24486 4 VERSION="3.5.28"
al@14429 5 CATEGORY="office"
al@14429 6 SHORT_DESC="A web-centric format and software platform for distributing documents and images."
al@14429 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@25421 9 WEB_SITE="http://djvu.sourceforge.net/djview4.html"
Hans-G?nter@24486 10
al@14429 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@18074 12 WGET_URL="$SF_MIRROR/djvu/$TARBALL"
psychomaniak@18072 13
Hans-G?nter@24486 14 DEPENDS="jpeg tiff"
Hans-G?nter@24486 15 BUILD_DEPENDS="bash jpeg-dev librsvg-apps tiff-dev xdg-utils"
Hans-G?nter@24486 16
pankso@16349 17 #HOST_ARCH="i486 arm"
al@14429 18
pankso@16218 19 # Handle cross compilation. Build host must have: xdg-utils bash librsvg-apps
pankso@16218 20 case "$ARCH" in
pankso@16218 21 arm*) BUILD_DEPENDS="tiff-dev jpeg-dev " ;;
pankso@16218 22 esac
pankso@16218 23
pascal@24385 24 # What is the latest version available today?
pascal@24385 25 current_version()
pascal@24385 26 {
pascal@24385 27 wget -O - https://sourceforge.net/projects/djvu/files/DjVuLibre/ 2>/dev/null | \
pascal@24385 28 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24385 29 sed '/scope="row/!d;s|.*/DjVuLibre/||;s|/.*||;q'
pascal@24385 30 }
pascal@24385 31
al@14429 32 # Rules to configure and make the package.
al@14429 33 compile_rules()
al@14429 34 {
Hans-G?nter@24486 35 ./configure \
Hans-G?nter@24486 36 --sysconfdir=/etc \
al@14429 37 $CONFIGURE_ARGS &&
al@14429 38 make &&
al@14429 39 make install
al@14429 40 }
al@14429 41
al@14429 42 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14429 43 genpkg_rules()
al@14429 44 {
Hans-G?nter@24486 45 mkdir -p $fs/usr/lib
Hans-G?nter@24486 46 mkdir -p $fs/usr/share
Hans-G?nter@24486 47
Hans-G?nter@24486 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@24486 49 cp -a $install/usr/bin $fs/usr
Hans-G?nter@24486 50 cp -a $install/usr/share/djvu $fs/usr/share
al@14429 51 }