wok-current view djview/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 00bff3684d8a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="djview"
4 VERSION="4.12"
5 CATEGORY="graphics"
6 SHORT_DESC="Djvu files viewer."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://djvu.sourceforge.net/djview4.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/djvu/$TARBALL"
14 DEPENDS="djvulibre libQtGui libQtNetwork libQtOpenGL"
15 BUILD_DEPENDS="autoconf automake djvulibre-dev file libtool mesa-dev
16 qmake Qt4-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/djvu/files/DjView/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/DjView/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./autogen.sh &&
30 make &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
38 rm -rf $fs/usr/lib/*/*/*.la
39 rm -rf $fs/usr/share/man
40 ln -s djview $fs/usr/bin/djview4
41 cd $fs/usr/share/icons/hicolor/32x32/
42 mv mime* apps
43 rm -rf ../64x64
44 rm -rf ../scalable
45 }