aboutsummaryrefslogtreecommitdiff
path: root/office/wordgrinder/wordgrinder.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2022-07-03 21:13:37 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-09 10:06:17 +0700
commit50a5097144a2074e9e22e14a2a5d4fa8b18a4fc0 (patch)
treede72d47c56c7f3b5b115cb2a2317eedc07d5490e /office/wordgrinder/wordgrinder.SlackBuild
parentb6d015953b0fe884056c7782da61495bfe4872c8 (diff)
office/wordgrinder: Updated for version 0.8.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/wordgrinder/wordgrinder.SlackBuild')
-rw-r--r--office/wordgrinder/wordgrinder.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/office/wordgrinder/wordgrinder.SlackBuild b/office/wordgrinder/wordgrinder.SlackBuild
index eae751cac264..f664061b05b2 100644
--- a/office/wordgrinder/wordgrinder.SlackBuild
+++ b/office/wordgrinder/wordgrinder.SlackBuild
@@ -2,7 +2,7 @@
# 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
@@ -29,8 +29,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wordgrinder
-VERSION=${VERSION:-0.7.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.8}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -82,7 +82,8 @@ find -L . \
# 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.
@@ -90,12 +91,16 @@ sed -i '/KEY_EVENT/d' src/c/arch/unix/cursesw/dpy.c
make CFLAGS="$SLKCFLAGS"
make install DESTDIR=$PKG
-gzip -9 $PKG/usr/man/man*/*
+gzip -9 $PKG/usr/man/man1/*
+
+# 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/
# 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