summaryrefslogtreecommitdiffstats
path: root/office/ghostwriter
diff options
context:
space:
mode:
Diffstat (limited to 'office/ghostwriter')
-rw-r--r--office/ghostwriter/README16
-rw-r--r--office/ghostwriter/ghostwriter.SlackBuild49
-rw-r--r--office/ghostwriter/ghostwriter.info18
-rw-r--r--office/ghostwriter/slack-desc8
4 files changed, 48 insertions, 43 deletions
diff --git a/office/ghostwriter/README b/office/ghostwriter/README
index b3755370a4..6157185a1f 100644
--- a/office/ghostwriter/README
+++ b/office/ghostwriter/README
@@ -1,13 +1,7 @@
-ghostwriter is a distraction-free Markdown editor, featuring a full
-screen mode and a clean interface. With Markdown, you can write now,
-and format later.
+ghostwriter: No excuses. No distractions. Just write.
-Some of the features include:
+Distraction-Free Writing
-- built-in and custom themes,
-- live HTML preview,
-- export to multiple formats,
-- navigation with outline,
-- focus and Hemingway modes,
-- document and session statistics,
-- drag and drop images.
+Enjoy a distraction-free writing experience, including a full screen
+mode and a clean interface. With Markdown, you can write now, and
+format later.
diff --git a/office/ghostwriter/ghostwriter.SlackBuild b/office/ghostwriter/ghostwriter.SlackBuild
index 5abab5fafe..4a94191878 100644
--- a/office/ghostwriter/ghostwriter.SlackBuild
+++ b/office/ghostwriter/ghostwriter.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ghostwriter
-# Copyright 2020 Andrzej Telszewski, Szczecin
+# Copyright 2022 Andrew Payne <phalange@komputermatrix.com>
+# Copyright 2021 Andrzej Telszewski, Szczecin
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +23,13 @@
# 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=ghostwriter
-VERSION=${VERSION:-1.8.1}
+VERSION=${VERSION:-2.1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +39,14 @@ if [ -z "$ARCH" ]; then
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}
@@ -59,33 +70,33 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-
chown -R root:root .
-chmod -R a-st,u+rwX,go-w+rX .
-
-# Adjust docs location.
-
-sed -i $PRGNAM.pro -e "s|man\.path.*$|man.path = /usr/man/man1|"
+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 {} \;
-qmake-qt5 -r $PRGNAM.pro \
- QMAKE_CFLAGS="$SLKCFLAGS" \
- QMAKE_CXXFLAGS="$SLKCFLAGS" \
+qmake-qt5 \
PREFIX=/usr
make
make install INSTALL_ROOT=$PKG
+cd ..
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
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+mv $PKG/usr/share/man $PKG/usr/
+find $PKG/usr/man/man1 -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man/man1 -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a {BUILD_MAC,CHANGELOG,CREDITS,README}.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $TMP/$PRGNAM-$VERSION/{CHANGELOG.md,CONTRIBUTING.md,COPYING,CREDITS.md,README.md} \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -93,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/ghostwriter/ghostwriter.info b/office/ghostwriter/ghostwriter.info
index e2471bb7e6..fd4c1fad2e 100644
--- a/office/ghostwriter/ghostwriter.info
+++ b/office/ghostwriter/ghostwriter.info
@@ -1,10 +1,10 @@
PRGNAM="ghostwriter"
-VERSION="1.8.1"
-HOMEPAGE="https://wereturtle.github.io/ghostwriter/"
-DOWNLOAD="https://github.com/wereturtle/ghostwriter/archive/v1.8.1/ghostwriter-1.8.1.tar.gz"
-MD5SUM="67f6b671a8e10bc91872fd65dea2b78f"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES="qt5"
-MAINTAINER="Andrzej Telszewski"
-EMAIL="atelszewski@gmail.com"
+VERSION="2.1.6"
+HOMEPAGE="https://invent.kde.org/office/ghostwriter"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://invent.kde.org/office/ghostwriter/-/archive/2.1.6/ghostwriter-2.1.6.tar.gz"
+MD5SUM_x86_64="7a46b3b1043d33e835c2e1c38d51191c"
+REQUIRES=""
+MAINTAINER="Andrew Payne"
+EMAIL="phalange@komputermatrix.com"
diff --git a/office/ghostwriter/slack-desc b/office/ghostwriter/slack-desc
index a710c6fd2b..1532eef904 100644
--- a/office/ghostwriter/slack-desc
+++ b/office/ghostwriter/slack-desc
@@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
ghostwriter: ghostwriter (distraction-free Markdown editor)
ghostwriter:
-ghostwriter: ghostwriter is a distraction-free Markdown editor, featuring a full
-ghostwriter: screen mode and a clean interface. With Markdown, you can write now,
-ghostwriter: and format later.
+ghostwriter: ghostwriter: No excuses. No distractions. Just write.
ghostwriter:
-ghostwriter: Homepage: https://wereturtle.github.io/ghostwriter/
ghostwriter:
ghostwriter:
ghostwriter:
ghostwriter:
+ghostwriter:
+ghostwriter: Homepage: https://ghostwriter.kde.org/
+ghostwriter: