wok-6.x view djvulibre/receipt @ rev 25432
motion: adapted configuration parameters to version 4.4.0
author | Hans-G?nter Theisgen |
---|---|
date | Sun Aug 21 17:07:48 2022 +0100 (24 months ago) |
parents | 90e94ef08776 |
children | b0069c845544 |
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="http://djvu.sourceforge.net/djview4.html"
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 }