wok-next annotate djview/receipt @ rev 17199
Up rsync (3.1.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 08 19:19:04 2014 +0200 (2014-10-08) |
parents | |
children | 5de0cc26f88c |
rev | line source |
---|---|
psychomaniak@17122 | 1 # SliTaz package receipt. |
psychomaniak@17122 | 2 |
psychomaniak@17122 | 3 PACKAGE="djview" |
psychomaniak@17122 | 4 VERSION="4.9" |
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@17122 | 11 WGET_URL="$SF_MIRROR/djvu/$TARBALL" |
psychomaniak@17122 | 12 |
psychomaniak@17122 | 13 DEPENDS="libQtGui libQtNetwork djvulibre" |
psychomaniak@17122 | 14 BUILD_DEPENDS="qmake Qt4-dev djvulibre-dev" |
psychomaniak@17122 | 15 |
psychomaniak@17122 | 16 # Rules to configure and make the package. |
psychomaniak@17122 | 17 compile_rules() |
psychomaniak@17122 | 18 { |
psychomaniak@17122 | 19 ./configure |
psychomaniak@17122 | 20 sed -i 's/-O2/-Os/g' $src/src/Makefile |
psychomaniak@17122 | 21 make && |
psychomaniak@17122 | 22 make install |
psychomaniak@17122 | 23 } |
psychomaniak@17122 | 24 |
psychomaniak@17122 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17122 | 26 genpkg_rules() |
psychomaniak@17122 | 27 { |
psychomaniak@17122 | 28 cp -a $install/* $fs |
psychomaniak@17122 | 29 mkdir -p $fs/usr/share/applications $fs/usr/share/icons/hicolor/32x32/apps |
psychomaniak@17122 | 30 cd $fs/usr/share/djvu/djview4/desktop |
psychomaniak@17122 | 31 mv djvulibre-djview4.desktop $fs/usr/share/applications |
psychomaniak@17122 | 32 mv hi32-djview4.png $fs/usr/share/icons/hicolor/32x32/apps/djvulibre-djview4.png |
psychomaniak@17122 | 33 rm -rf *.png *.svgz |
psychomaniak@17122 | 34 rm -rf $fs/usr/lib |
psychomaniak@17122 | 35 } |