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