office/remind: Updated for version 03.01.16.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
T3slider 2019-07-30 00:41:48 +07:00 committed by Willy Sudiarto Raharjo
parent 8691010fa4
commit cbb2245196
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 17 additions and 6 deletions

View file

@ -22,6 +22,7 @@ See the SlackBuild for more information on these variables.
DEFAULT_PAGE=Letter|A4 (default: Letter), set the default page size
DATESEP=-|/ (default: -), set the date separator character
TIMESEP=:|. (default: :), set the time separator character
DATETIMESEP=@|/|T (default: @), set the datetime separator character
CHARSET=ASCII|ISOLATIN1|ISOLATIN2|IBMEXTENDED|IBM852
(default: ISOLATIN1), set the character set to use

View file

@ -2,7 +2,7 @@
# Slackware build script for Remind
# Copyright 2016 T3slider <t3slider@gmail.com>
# Copyright 2019 T3slider <t3slider@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=remind
VERSION=${VERSION:-03.01.15}
VERSION=${VERSION:-03.01.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -90,6 +90,10 @@ DATESEP=${DATESEP:--}
# Default time separator. Options are : or .
TIMESEP=${TIMESEP:-:}
# Default datetime separator. Standard options are @ or / but some may
# prefer T (any single character can be passed).
DATETIMESEP=${DATETIMESEP:-@}
# Character set to use. Options are ASCII, ISOLATIN1, ISOLATIN2,
# IBMEXTENDED, or IBM852.
CHARSET=${CHARSET:-ISOLATIN1}
@ -145,6 +149,12 @@ if [ "$TIMESEP" = "." ]; then
sed -i "s|^#define TIMESEP ':'|/* & */|" src/custom.h
sed -i "s|^\(/\* \)\(#define TIMESEP '\.'\)\( \*/\)|\2|" src/custom.h
fi
if [ "$DATETIMESEP" = "/" ]; then
sed -i "s|^#define DATETIMESEP '@'|/* & */|" src/custom.h
sed -i "s|^\(/\* \)\(#define DATETIMESEP '/'\)\( \*/\)|\2|" src/custom.h
elif [ "$DATETIMESEP" != "@" ]; then
sed -i "s|^\(#define DATETIMESEP '\)\(@\)\('\)|\1${DATETIMESEP}\3|" src/custom.h
fi
sed -i "s/^\(#define ISOLATIN1 \).*/\1 0/" src/custom.h
if [ "$CHARSET" != "ASCII" ]; then
sed -i "s/^\(#define $CHARSET \).*/\1 1/" src/custom.h

View file

@ -1,8 +1,8 @@
PRGNAM="remind"
VERSION="03.01.15"
HOMEPAGE="https://www.roaringpenguin.com/products/remind"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/remind-03.01.15.tar.gz"
MD5SUM="089c51c060fdda2357a833800a5bfe39"
VERSION="03.01.16"
HOMEPAGE="https://dianne.skoll.ca/projects/remind/"
DOWNLOAD="https://dianne.skoll.ca/projects/remind/download/remind-03.01.16.tar.gz"
MD5SUM="17ba30c2aee7f3156cc8de308be123ed"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""