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

djvulibre, djview: fix bad value of $SF_MIRROR, use downloads (may mix html+binary data with busybox wget)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu May 21 16:13:49 2015 +0200 (2015-05-21)
parents 5de0cc26f88c
children f1b019f776c9
rev   line source
psychomaniak@17122 1 # SliTaz package receipt.
psychomaniak@17122 2
psychomaniak@17122 3 PACKAGE="djview"
psychomaniak@18071 4 VERSION="4.10.3"
psychomaniak@17122 5 CATEGORY="graphics"
psychomaniak@17122 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/"
psychomaniak@17122 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
psychomaniak@18072 11 # WGET_URL="$SF_MIRROR/djvu/$TARBALL"
psychomaniak@18072 12 WGET_URL="${WEB_SITE/djvu/downloads}/djvu/$TARBALL"
psychomaniak@17122 13
psychomaniak@17122 14 DEPENDS="libQtGui libQtNetwork djvulibre"
psychomaniak@18072 15 BUILD_DEPENDS="qmake Qt4-dev djvulibre-dev gzip wget"
psychomaniak@17122 16
psychomaniak@17122 17 # Rules to configure and make the package.
psychomaniak@17122 18 compile_rules()
psychomaniak@17122 19 {
psychomaniak@17122 20 ./configure
psychomaniak@17122 21 sed -i 's/-O2/-Os/g' $src/src/Makefile
psychomaniak@17122 22 make &&
psychomaniak@17122 23 make install
psychomaniak@17122 24 }
psychomaniak@17122 25
psychomaniak@17122 26 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@17122 27 genpkg_rules()
psychomaniak@17122 28 {
psychomaniak@17122 29 cp -a $install/* $fs
psychomaniak@18071 30 ln -s djview $fs/usr/bin/djview4
psychomaniak@18071 31 cd $fs/usr/share/icons/hicolor/32x32/
psychomaniak@18071 32 mv mime* apps
psychomaniak@18071 33 rm -rf ../64x64 ../scalable $fs/usr/lib/*/*/*.la
psychomaniak@17122 34 }