wok view djview/receipt @ rev 24484
updated dislocker (0.7.1 -> 0.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 15:45:33 2022 +0100 (2022-02-18) |
parents | b99ac3d4def2 |
children | 8b0cae52419d |
line source
1 # SliTaz package receipt.
3 PACKAGE="djview"
4 VERSION="4.10.6"
5 CATEGORY="graphics"
6 SHORT_DESC="Djvu files viewer."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="http://djvu.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://sourceforge.net/projects/djvu/files/DjView/${VERSION%.*}/$TARBALL"
14 DEPENDS="djvulibre libQtGui libQtNetwork libQtOpenGL"
15 BUILD_DEPENDS="djvulibre-dev file mesa-dev qmake Qt4-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/djvu/files/DjView/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/DjView/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure
29 sed -i 's/-O2/-Os/g' src/Makefile
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 ln -s djview $fs/usr/bin/djview4
39 cd $fs/usr/share/icons/hicolor/32x32/
40 mv mime* apps
41 rm -rf ../64x64
42 rm -rf ../scalable
43 rm -rf $fs/usr/lib/*/*/*.la
44 }