wok view djview/receipt @ rev 17454

syslinux/iso2exe: create a vfat partition in usb bootkey (DOS case only)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 18 11:42:27 2014 +0100 (2014-12-18)
parents
children 5de0cc26f88c
line source
1 # SliTaz package receipt.
3 PACKAGE="djview"
4 VERSION="4.9"
5 CATEGORY="graphics"
6 SHORT_DESC="Djvu files viewer."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="http://djvu.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/djvu/$TARBALL"
13 DEPENDS="libQtGui libQtNetwork djvulibre"
14 BUILD_DEPENDS="qmake Qt4-dev djvulibre-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure
20 sed -i 's/-O2/-Os/g' $src/src/Makefile
21 make &&
22 make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $install/* $fs
29 mkdir -p $fs/usr/share/applications $fs/usr/share/icons/hicolor/32x32/apps
30 cd $fs/usr/share/djvu/djview4/desktop
31 mv djvulibre-djview4.desktop $fs/usr/share/applications
32 mv hi32-djview4.png $fs/usr/share/icons/hicolor/32x32/apps/djvulibre-djview4.png
33 rm -rf *.png *.svgz
34 rm -rf $fs/usr/lib
35 }