wok view qpdfview/receipt @ rev 24991

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 14 08:41:24 2022 +0000 (2022-05-14)
parents e03f4dac67ec
children 70a00c0a16d3
line source
1 # SliTaz package receipt.
3 PACKAGE="qpdfview"
4 VERSION="0.4.16"
5 CATEGORY="office"
6 TAGS="viewer pdf ps postscript djvu"
7 SHORT_DESC="A tabbed document viewer."
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://launchpad.net/qpdfview"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/trunk/$VERSION/+download/$TARBALL"
15 DEPENDS="djvulibre file libcups libgnutls libQtDBus libQtSql libQtSvg \
16 libspectre poppler-qt4"
17 BUILD_DEPENDS="cups-dev djvulibre-dev libmagic-dev libspectre-dev \
18 poppler-dev poppler-qt4 poppler-qt4-dev qmake Qt4-dev wget zlib-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed '/Latest version is/!d;s|.*is ||'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 find $src -name *desktop* -exec sed '/Icon=/s/=.*$/=pdf/g' -i {} \;
31 #cp -f $stuff/qpdfview_ru.ts $src/translations
32 #sed -i "s/copy; \\([0-9]*-\\)[0-9]*/copy; \\1$(date +%Y)/" \
33 $src/translations/qpdfview_ru.ts
35 lrelease qpdfview.pro
36 qmake PREFIX=/usr qpdfview.pro &&
37 make &&
38 make INSTALL_ROOT=$install install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs
45 }