wok-current view djvulibre/receipt @ rev 25019
updated openjpeg2 and openjpeg2-dev (2.3.1 -> 2.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 18 07:22:38 2022 +0100 (2022-05-18) |
parents | 640a2eba2511 |
children | 00bff3684d8a |
line source
1 # SliTaz package receipt.
3 PACKAGE="djvulibre"
4 VERSION="3.5.28"
5 CATEGORY="office"
6 SHORT_DESC="A web-centric format and software platform for distributing documents and images."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/djvu/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/djvu/$TARBALL"
14 DEPENDS="jpeg tiff"
15 BUILD_DEPENDS="bash jpeg-dev librsvg-apps tiff-dev xdg-utils"
17 #HOST_ARCH="i486 arm"
19 # Handle cross compilation. Build host must have: xdg-utils bash librsvg-apps
20 case "$ARCH" in
21 arm*) BUILD_DEPENDS="tiff-dev jpeg-dev " ;;
22 esac
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - https://sourceforge.net/projects/djvu/files/DjVuLibre/ 2>/dev/null | \
28 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
29 sed '/scope="row/!d;s|.*/DjVuLibre/||;s|/.*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 --sysconfdir=/etc \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib
46 mkdir -p $fs/usr/share
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share/djvu $fs/usr/share
51 }