development/zeal: Updated for version 0.7.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Nick Smallbone 2024-06-26 15:51:07 +02:00 committed by Willy Sudiarto Raharjo
parent 687b90cbbb
commit 4c0c8159dd
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 17 additions and 26 deletions

View file

@ -10,10 +10,7 @@ Offline documentation browser inspired by Dash
- Integrate Zeal with IDEA, Sublime Text, or your favourite IDE with
a variety of plugins (http://zealdocs.org/usage.html#plugins)
After installing Zeal go to File -> Options -> Docsets to browse and
After installing Zeal go to Tools -> Docsets to browse and
download docsets.
To disable the small ad on Zeal's home page go to Edit -> Preferences ->
Content -> Disable advertisement on the welcome page.
All documentation available for Dash is also available for Zeal.

View file

@ -3,7 +3,7 @@
# Slackware build script for zeal
# Copyright 2015-2018 Ricardo J. Barberis <ricardo.barberis@gmail.com>
# Copyright 2023 Nick Smallbone <nick@smallbone.se>
# Copyright 2023-2024 Nick Smallbone <nick@smallbone.se>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=zeal
VERSION=${VERSION:-0.6.1}
BUILD=${BUILD:-2}
VERSION=${VERSION:-0.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -53,16 +50,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
@ -71,11 +64,15 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
# https://github.com/zealdocs/zeal/pull/1218
zcat $CWD/064aaa05d6a3ba4ba3cf648199a3109aba2f41fe.diff.gz | patch -p1
# Convert desktop and appdata files to use Unix line endings
for i in assets/freedesktop/*.{xml*,desktop}; do
fromdos < $i > $i.tmp
mv -f $i.tmp $i
done
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -83,18 +80,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
export ZEAL_VERSION=${VERSION}
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DCMAKE_BUILD_TYPE=Release ..
-DCMAKE_BUILD_TYPE=Release .. \
-DZEAL_RELEASE_BUILD=ON
make
make install DESTDIR=$PKG
make install/strip DESTDIR=$PKG
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \

View file

@ -1,8 +1,8 @@
PRGNAM="zeal"
VERSION="0.6.1"
VERSION="0.7.1"
HOMEPAGE="https://zealdocs.org/"
DOWNLOAD="https://github.com/zealdocs/zeal/archive/v0.6.1/zeal-0.6.1.tar.gz"
MD5SUM="99da3e15dd100c42c9062fe525c9db8c"
DOWNLOAD="https://github.com/zealdocs/zeal/releases/download/v0.7.1/zeal-0.7.1.tar.gz"
MD5SUM="dec48022b13752aa96b225de7fb96859"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""