wok-6.x annotate djview/receipt @ rev 24428

updated cmus (2.8.0 -> 2.9.1)
author Hans-G?nter Theisgen
date Sat Feb 12 14:59:37 2022 +0100 (2022-02-12)
parents b99ac3d4def2
children 8b0cae52419d
rev   line source
psychomaniak@17122 1 # SliTaz package receipt.
psychomaniak@17122 2
psychomaniak@17122 3 PACKAGE="djview"
Hans-G?nter@22649 4 VERSION="4.10.6"
psychomaniak@17122 5 CATEGORY="graphics"
Hans-G?nter@22649 6 SHORT_DESC="Djvu files viewer."
psychomaniak@17122 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@17122 8 LICENSE="GPL2"
psychomaniak@17122 9 WEB_SITE="http://djvu.sourceforge.net/"
Hans-G?nter@22649 10
psychomaniak@17122 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22650 12 WGET_URL="https://sourceforge.net/projects/djvu/files/DjView/${VERSION%.*}/$TARBALL"
psychomaniak@17122 13
Hans-G?nter@22649 14 DEPENDS="djvulibre libQtGui libQtNetwork libQtOpenGL"
Hans-G?nter@22649 15 BUILD_DEPENDS="djvulibre-dev file mesa-dev qmake Qt4-dev"
psychomaniak@17122 16
pascal@24361 17 # What is the latest version available today?
pascal@24361 18 current_version()
pascal@24361 19 {
pascal@24361 20 wget -O - https://sourceforge.net/projects/djvu/files/DjView/ 2>/dev/null | \
pascal@24361 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 22 sed '/scope="row/!d;s|.*/DjView/||;s|/.*||;q'
pascal@24361 23 }
pascal@24361 24
psychomaniak@17122 25 # Rules to configure and make the package.
psychomaniak@17122 26 compile_rules()
psychomaniak@17122 27 {
psychomaniak@17122 28 ./configure
Hans-G?nter@22649 29 sed -i 's/-O2/-Os/g' src/Makefile
psychomaniak@17122 30 make &&
psychomaniak@17122 31 make install
psychomaniak@17122 32 }
psychomaniak@17122 33
psychomaniak@17122 34 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@17122 35 genpkg_rules()
psychomaniak@17122 36 {
Hans-G?nter@22649 37 cp -a $install/* $fs
Hans-G?nter@22649 38 ln -s djview $fs/usr/bin/djview4
psychomaniak@18071 39 cd $fs/usr/share/icons/hicolor/32x32/
psychomaniak@18071 40 mv mime* apps
Hans-G?nter@22649 41 rm -rf ../64x64
Hans-G?nter@22649 42 rm -rf ../scalable
Hans-G?nter@22649 43 rm -rf $fs/usr/lib/*/*/*.la
psychomaniak@17122 44 }