diff options
-rw-r--r-- | office/novelWriter/README | 19 | ||||
-rw-r--r-- | office/novelWriter/doinst.sh | 3 | ||||
-rwxr-xr-x | office/novelWriter/novelWriter | 22 | ||||
-rw-r--r-- | office/novelWriter/novelWriter.SlackBuild | 71 | ||||
-rw-r--r-- | office/novelWriter/novelWriter.desktop | 7 | ||||
-rw-r--r-- | office/novelWriter/novelWriter.info | 10 | ||||
-rw-r--r-- | office/novelWriter/novelWriter.png | bin | 0 -> 4356 bytes | |||
-rw-r--r-- | office/novelWriter/slack-desc | 19 |
8 files changed, 151 insertions, 0 deletions
diff --git a/office/novelWriter/README b/office/novelWriter/README new file mode 100644 index 0000000000..4bb776eb75 --- /dev/null +++ b/office/novelWriter/README @@ -0,0 +1,19 @@ +novelWriter is a plain text editor designed for writing novels +assembled from many smaller text documents. It uses a minimal +formatting syntax inspired by Markdown, and adds a meta data syntax +for comments, synopsis, and cross-referencing. It's designed to be a +simple text editor that allows for easy organisation of text and +notes, using human readable text files as storage for robustness. + +The project storage is suitable for version control software, and also +well suited for file synchronisation tools. All text is saved as plain +text files with a meta data header. The core project structure is +stored in a single project XML file. Other meta data is primarily +saved as JSON files. + +For more details, and how to install and use novelWriter, please see +the main website and documentation. + +This script builds a Slackware package using the official binary. +The download is an AppImage which is placed in /opt +however source is also available on github. diff --git a/office/novelWriter/doinst.sh b/office/novelWriter/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/office/novelWriter/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/office/novelWriter/novelWriter b/office/novelWriter/novelWriter new file mode 100755 index 0000000000..8a251f8f11 --- /dev/null +++ b/office/novelWriter/novelWriter @@ -0,0 +1,22 @@ +#!/bin/sh +# Slackware wrapper for the novelWriter AppImage. +runme(){ + cd /opt/novelWriter + ./novelWriter-2.6.3.AppImage "$@" +} + +if [ $UID == 0 ]; then + read -p "You are currently running as root...\ + Are you sure you want to proceed? (N/y): " resp + case "$resp" in + y|yes) + runme + ;; + *) + echo Exiting + exit 0 + ;; + esac +else + runme $@ +fi diff --git a/office/novelWriter/novelWriter.SlackBuild b/office/novelWriter/novelWriter.SlackBuild new file mode 100644 index 0000000000..60873d9dff --- /dev/null +++ b/office/novelWriter/novelWriter.SlackBuild @@ -0,0 +1,71 @@ +#!/bin/bash + +# Slackware build script for NovelWriter +# All rights reserved. + +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 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 +# 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, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# 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=novelWriter +VERSION=${VERSION:-2.6.3} +SRC=novelWriter-2.6.3.AppImage +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +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} + +set -e +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +install -D -m0755 -oroot -groot $SRC $PKG/opt/$PRGNAM/$SRC + +mkdir -p $PKG/usr $PKG/usr/doc $PKG/usr/bin +mkdir -p $PKG/usr/share $PKG/usr/share/pixmaps $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +cat $CWD/$PRGNAM > $PKG/usr/bin/$PRGNAM +chmod 755 $PKG/usr/bin/$PRGNAM + +mkdir -p $PKG/install +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 diff --git a/office/novelWriter/novelWriter.desktop b/office/novelWriter/novelWriter.desktop new file mode 100644 index 0000000000..5f651cdbea --- /dev/null +++ b/office/novelWriter/novelWriter.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Terminal=false +Exec=/opt/novelWriter-2.6.3.AppImage +Name=novelWriter +Icon=novelWriter + diff --git a/office/novelWriter/novelWriter.info b/office/novelWriter/novelWriter.info new file mode 100644 index 0000000000..2e7015cc76 --- /dev/null +++ b/office/novelWriter/novelWriter.info @@ -0,0 +1,10 @@ +PRGNAM="novelWriter" +VERSION="2.6.3" +HOMEPAGE="https://novelwriter.io/" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/vkbo/novelWriter/releases/download/v2.6.3/novelWriter-2.6.3.AppImage" +MD5SUM_x86_64="04afc29b4570bcd42d164dc566f6b928" +REQUIRES="" +MAINTAINER="hoobop" +EMAIL="hoobop@gmail.com" diff --git a/office/novelWriter/novelWriter.png b/office/novelWriter/novelWriter.png Binary files differnew file mode 100644 index 0000000000..a4bd8da481 --- /dev/null +++ b/office/novelWriter/novelWriter.png diff --git a/office/novelWriter/slack-desc b/office/novelWriter/slack-desc new file mode 100644 index 0000000000..bb66f5db29 --- /dev/null +++ b/office/novelWriter/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +novelWriter: novelWriter (A plain text editor designed for writing novels) +novelWriter: +novelWriter: It is available as an AppImage. +novelWriter: +novelWriter: +novelWriter: +novelWriter: +novelWriter: +novelWriter: +novelWriter: +novelWriter: |