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>
This commit is contained in:
Dimitris Zlatanidis 2022-07-03 21:13:37 +03:00 committed by Willy Sudiarto Raharjo
parent b6d015953b
commit 50a5097144
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 15 additions and 18 deletions

View file

@ -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

View file

@ -1,8 +0,0 @@
[Desktop Entry]
Name=WordGrinder
Comment=A word processor for processing words
Exec=xwordgrinder
Icon=/usr/share/pixmaps/wordgrinder.png
Terminal=false
Type=Application
Categories=Office;

View file

@ -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="lua52 lua-filesystem"
REQUIRES=""
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"