diff options
Diffstat (limited to 'office/wordgrinder')
-rw-r--r-- | office/wordgrinder/README | 13 | ||||
-rw-r--r-- | office/wordgrinder/wordgrinder.SlackBuild | 45 | ||||
-rw-r--r-- | office/wordgrinder/wordgrinder.desktop | 8 | ||||
-rw-r--r-- | office/wordgrinder/wordgrinder.info | 8 |
4 files changed, 42 insertions, 32 deletions
diff --git a/office/wordgrinder/README b/office/wordgrinder/README index edb1b46738..08ed511b93 100644 --- a/office/wordgrinder/README +++ b/office/wordgrinder/README @@ -1,7 +1,8 @@ -WordGrinder is a simple, Unicode-aware word processor that runs on the -console. It's designed to get the hell out of your way and let you write; -it does very little, but what it does it does well. +WordGrinder is a simple, Unicode-aware word processor that runs on +the console. It's designed to get the hell out of your way and let you +write; it does very little, but what it does it does well. -It supports basic paragraph styles, basic character styles, basic screen -markup, a menu interface that means you don't have to remember complex -key sequences, HTML import and export, and some other useful features. +It supports basic paragraph styles, basic character styles, basic +screen markup, a menu interface that means you don't have to remember +complex key sequences, HTML import and export, and some other useful +features. diff --git a/office/wordgrinder/wordgrinder.SlackBuild b/office/wordgrinder/wordgrinder.SlackBuild index d9b19328cc..f664061b05 100644 --- a/office/wordgrinder/wordgrinder.SlackBuild +++ b/office/wordgrinder/wordgrinder.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for wordgrinder -# Copyright 2018 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2018-2022 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,17 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220218 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix 15.0 build. +# - use correct icon path in .desktop file. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wordgrinder -VERSION=${VERSION:-0.7.2} +VERSION=${VERSION:-0.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +42,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -65,25 +76,31 @@ cd $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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ # Fix of paths for Slackware sed -i '7s!$(HOME)!'$PKG'/usr!' Makefile -sed -i 's!share\/!!' Makefile +sed -i '10s!SHAREDIR!PREFIX!' Makefile +sed -i '11s!SHAREDIR!PREFIX!' Makefile + +# 20220218 bkw: Slackware 15.0's ncurses headers don't define KEY_EVENT, +# and wordgrinder doesn't seem to actually use it anyway. +sed -i '/KEY_EVENT/d' src/c/arch/unix/cursesw/dpy.c -make +make CFLAGS="$SLKCFLAGS" make install DESTDIR=$PKG +gzip -9 $PKG/usr/man/man1/* -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 +# Fix doc and mime paths +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/mime-info $PKG/usr/share/mime/ -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +# 20220218 bkw: binaries are stripped by default mkdir -p $PKG/usr/share/applications -install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop +install -D -m644 extras/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/share/pixmaps/ install -D -m644 extras/icon.png $PKG/usr/share/pixmaps/${PRGNAM}.png @@ -97,4 +114,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/wordgrinder/wordgrinder.desktop b/office/wordgrinder/wordgrinder.desktop deleted file mode 100644 index 0c75cfee95..0000000000 --- a/office/wordgrinder/wordgrinder.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Name=WordGrinder -Comment= A word processor for processing words -Exec=xwordgrinder -Icon=wordgrinder -Terminal=false -Type=Application -Categories=Office; diff --git a/office/wordgrinder/wordgrinder.info b/office/wordgrinder/wordgrinder.info index 24ccfcdce3..fc65ac9f14 100644 --- a/office/wordgrinder/wordgrinder.info +++ b/office/wordgrinder/wordgrinder.info @@ -1,10 +1,10 @@ PRGNAM="wordgrinder" -VERSION="0.7.2" +VERSION="0.8" HOMEPAGE="https://cowlark.com/wordgrinder/" -DOWNLOAD="https://github.com/davidgiven/wordgrinder/archive/0.7.2/wordgrinder-0.7.2.tar.gz" -MD5SUM="4c754fddfe29c2038a1c96d38ba49c74" +DOWNLOAD="https://github.com/davidgiven/wordgrinder/archive/0.8/wordgrinder-0.8.tar.gz" +MD5SUM="8a21e2ee18a9372741bb80b270588817" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="ninja lua52 lua-filesystem" +REQUIRES="" MAINTAINER="Dimitris Zlatanidis" EMAIL="d.zlatanidis@gmail.com" |