mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
office/kchmviewer-qt: Updated for version 7.7 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
11ce26eb41
commit
6f07d14d99
4 changed files with 68 additions and 45 deletions
|
@ -1,16 +1,18 @@
|
|||
KchmViewer is a CHM (MS HTML help file format) viewer written in
|
||||
C++. Unlike most existing CHM viewers for Unix, it uses the
|
||||
Trolltech Qt widget library and does not depend on KDE or Gnome.
|
||||
However, it may be compiled with full KDE support including KDE
|
||||
widgets and KIO/KHTML. This script builds Qt-only version.
|
||||
Kchmviewer is a free, open-source CHM (aka MS HTML help) and EPUB viewer
|
||||
written in C++ for Unix, Mac and Windows systems. Unlike most existing
|
||||
CHM viewers for Unix, it uses Trolltech Qt widget library, and could
|
||||
optionally be compiled for better KDE integration. It does not require
|
||||
KDE, but may be compiled with KDE widget support. Since version 5.0 it
|
||||
uses the Webkit API to show the content. This script builds Qt-only
|
||||
version.
|
||||
|
||||
The main advantage of KchmViewer is extra support for non-English
|
||||
languages. Unlike other viewers, KchmViewer in most cases is able
|
||||
to detect help file encoding, correctly shows tables of contents of
|
||||
Russian, Korean, Chinese and Japanese help files, and does correct
|
||||
search in non-English help files (search for MBCS languages -
|
||||
ja/ko/ch is still in progress).
|
||||
The main advantage of kchmviewer is the best support for non-English
|
||||
languages. Unlike other viewers, kchmviewer in most cases is able to
|
||||
correctly detect the chm file encoding and show it. It correctly shows
|
||||
the index and table of context in Russian, Spanish, Romanian, Korean,
|
||||
Chinese and Arabic help files, and with new search engine is able to
|
||||
search in any chm file no matter what language it is written.
|
||||
|
||||
KchmViewer is written by George Yunaev (see the contacts page
|
||||
for details), and is licensed under the GNU GPL license. It uses
|
||||
chmlib and some ideas and code from xhcm.
|
||||
kchmviewer is written by George Yunaev, and is licensed under GNU
|
||||
General Public License version 3. It uses chmlib to handle the CHM
|
||||
files, and some ideas from xchm.
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for KchmViewer (Qt-only version)
|
||||
# Slackware build script for kchmviewer-qt
|
||||
|
||||
# Copyright 2012-2015 Fridrich von Stauffenberg <cancellor2@gmail.com>
|
||||
# Copyright 2017, Alexander Verbovetsky, Moscow, Russia
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -11,7 +12,7 @@
|
|||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
|
@ -23,7 +24,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=kchmviewer-qt
|
||||
VERSION=${VERSION:-7.3}
|
||||
VERSION=${VERSION:-7.7}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -31,7 +32,7 @@ ORIG_PRGNAM=${PRGNAM%-qt}
|
|||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -42,6 +43,16 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
|
@ -51,20 +62,30 @@ rm -rf $ORIG_PRGNAM-$VERSION
|
|||
tar xvf $CWD/$ORIG_PRGNAM-$VERSION.tar.gz
|
||||
cd $ORIG_PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
sed -i "s/$ORIG_PRGNAM/$PRGNAM/g;
|
||||
/^Categories/s/KDE;//;
|
||||
/^Name/s/$/ (Qt-only)/" packages/$ORIG_PRGNAM.desktop
|
||||
|
||||
qmake $ORIG_PRGNAM.pro
|
||||
qmake \
|
||||
QMAKE_CFLAGS+="$SLKCFLAGS" \
|
||||
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
|
||||
$ORIG_PRGNAM.pro
|
||||
make
|
||||
|
||||
mkdir -p $PKG/usr/bin
|
||||
cp -a bin/$ORIG_PRGNAM $PKG/usr/bin/$PRGNAM
|
||||
install -m 0755 -o root -g root bin/$ORIG_PRGNAM $PKG/usr/bin/$PRGNAM
|
||||
|
||||
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||
cp -a packages/$ORIG_PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
cp -a packages/$ORIG_PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
|
||||
install -m 0644 -o root -g root packages/$ORIG_PRGNAM.desktop \
|
||||
$PKG/usr/share/applications/$PRGNAM.desktop
|
||||
install -m 0644 -o root -g root packages/$ORIG_PRGNAM.png \
|
||||
$PKG/usr/share/pixmaps/$PRGNAM.png
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="kchmviewer-qt"
|
||||
VERSION="7.3"
|
||||
HOMEPAGE="http://www.kchmviewer.net"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/kchmviewer/kchmviewer-7.3.tar.gz"
|
||||
MD5SUM="d62647d897f9196ade034363e0d58c13"
|
||||
VERSION="7.7"
|
||||
HOMEPAGE="http://www.ulduzsoft.com/kchmviewer"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/kchmviewer/kchmviewer-7.7.tar.gz"
|
||||
MD5SUM="abf60f0cff69d2903600ecd372624cae"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Fridrich von Stauffenberg"
|
||||
EMAIL="cancellor2@gmail.com"
|
||||
MAINTAINER="Alexander Verbovetsky"
|
||||
EMAIL="alik@ejik.org"
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
kchmviewer-qt: kchmviewer-qt (a CHM viewer)
|
||||
kchmviewer-qt:
|
||||
kchmviewer-qt: KchmViewer is a CHM (MS HTML help file format) viewer written in
|
||||
kchmviewer-qt: C++. Unlike most existing CHM viewers for Unix, it uses the
|
||||
kchmviewer-qt: Trolltech Qt widget library and does not depend on KDE or Gnome.
|
||||
kchmviewer-qt: However, it may be compiled with full KDE support, including KDE
|
||||
kchmviewer-qt: widgets and KIO/KHTML. This is Qt-only version.
|
||||
kchmviewer-qt:
|
||||
kchmviewer-qt: Homepage: http://kchmviewer.sourceforge.net
|
||||
kchmviewer-qt:
|
||||
kchmviewer-qt: Kchmviewer is a free, open-source CHM (aka MS HTML help) and EPUB
|
||||
kchmviewer-qt: viewer written in C++ for Unix, Mac and Windows systems. Unlike most
|
||||
kchmviewer-qt: existing CHM viewers for Unix, it uses Trolltech Qt widget library,
|
||||
kchmviewer-qt: and could optionally be compiled for better KDE integration. It does
|
||||
kchmviewer-qt: not require KDE, but may be compiled with KDE widget support. Since
|
||||
kchmviewer-qt: version 5.0 it uses the Webkit API to show the content. This is
|
||||
kchmviewer-qt: Qt-only version.
|
||||
kchmviewer-qt:
|
||||
kchmviewer-qt: Homepage: http://www.ulduzsoft.com/kchmviewer
|
||||
|
|
Loading…
Reference in a new issue