summaryrefslogtreecommitdiffstats
path: root/office/focuswriter
diff options
context:
space:
mode:
Diffstat (limited to 'office/focuswriter')
-rw-r--r--office/focuswriter/README8
-rw-r--r--office/focuswriter/focuswriter.SlackBuild35
-rw-r--r--office/focuswriter/focuswriter.info10
-rw-r--r--office/focuswriter/slack-desc4
4 files changed, 38 insertions, 19 deletions
diff --git a/office/focuswriter/README b/office/focuswriter/README
index 61463f8371..8ab81f3a7c 100644
--- a/office/focuswriter/README
+++ b/office/focuswriter/README
@@ -1,6 +1,10 @@
-FocusWriter is a fullscreen, distraction-free word processor
-designed to immerse you as much as possible in your work.
+FocusWriter is a fullscreen, distraction-free word processor designed
+to immerse you as much as possible in your work.
The program autosaves your progress, and reloads the last files you
had open to make it easy to jump back in during your next writing
session, and has many other features that make it such that only one
thing matters: your writing.
+
+FocusWriter 1.7.6 is the last available version for qt5. Newer versions
+(focuswriter >= 1.8.0) require qt6.
+A focuswriter-qt6 package is available on slackbuilds.org.
diff --git a/office/focuswriter/focuswriter.SlackBuild b/office/focuswriter/focuswriter.SlackBuild
index c3dec34066..7fbcd2430b 100644
--- a/office/focuswriter/focuswriter.SlackBuild
+++ b/office/focuswriter/focuswriter.SlackBuild
@@ -1,10 +1,12 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for focuswriter
# Copyright 2014 Scalzi Giuseppe Switzerland
-# All rights reserved.
# Updated 2016 Morten Juhl-Johansen Zölde-Fejér
+# Copyright 2020 Isaac Yu <isaacyu@protonmail.com>
+# Copyright 2023 Yth | Pont-en-Royans, France | yth@ythogtha.org
+# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -23,26 +25,36 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=focuswriter
-VERSION=${VERSION:-1.5.7}
+VERSION=${VERSION:-1.7.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -50,6 +62,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -69,7 +84,7 @@ 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 {} \;
-qmake PREFIX=/usr
+qmake-qt5 PREFIX=/usr
make
make install INSTALL_ROOT=$PKG
@@ -77,7 +92,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING INSTALL README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/man $PKG/usr
@@ -89,4 +104,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/office/focuswriter/focuswriter.info b/office/focuswriter/focuswriter.info
index 7d11e63118..27d71fc268 100644
--- a/office/focuswriter/focuswriter.info
+++ b/office/focuswriter/focuswriter.info
@@ -1,10 +1,10 @@
PRGNAM="focuswriter"
-VERSION="1.5.7"
+VERSION="1.7.6"
HOMEPAGE="https://gottcode.org/focuswriter/"
-DOWNLOAD="https://gottcode.org/focuswriter/focuswriter-1.5.7-src.tar.bz2"
-MD5SUM="088dd0b696b60b3cc6c59793ec5eea6d"
+DOWNLOAD="https://gottcode.org/focuswriter/focuswriter-1.7.6-src.tar.bz2"
+MD5SUM="ba9e316b4bc0c4568d71f7dc3cd64fff"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Morten Juhl-Johansen Zölde-Fejér"
-EMAIL="mjjzf@syntaktisk.dk"
+MAINTAINER="Yth - Arnaud"
+EMAIL="yth@ythogtha.org"
diff --git a/office/focuswriter/slack-desc b/office/focuswriter/slack-desc
index 32385b11ef..b742081979 100644
--- a/office/focuswriter/slack-desc
+++ b/office/focuswriter/slack-desc
@@ -8,8 +8,8 @@
|-----handy-ruler------------------------------------------------------|
focuswriter: focuswriter (distraction-free word processor)
focuswriter:
-focuswriter: FocusWriter is a fullscreen, distraction-free word processor
-focuswriter: designed to immerse you as much as possible in your work.
+focuswriter: FocusWriter is a fullscreen, distraction-free word processor designed
+focuswriter: to immerse you as much as possible in your work.
focuswriter: The program autosaves your progress, and reloads the last files you
focuswriter: had open to make it easy to jump back in during your next writing
focuswriter: session, and has many other features that make it such that only one