diff options
Diffstat (limited to 'source/xap/x3270/x3270.SlackBuild')
-rwxr-xr-x | source/xap/x3270/x3270.SlackBuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/xap/x3270/x3270.SlackBuild b/source/xap/x3270/x3270.SlackBuild index 95c4ae7fd..769b328b9 100755 --- a/source/xap/x3270/x3270.SlackBuild +++ b/source/xap/x3270/x3270.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2008, 2009, 2012, 2018, 2021 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2012, 2018, 2021, 2023 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,10 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=x3270 -VERSION=4.0 +VERSION=4.3 TARBVER=${TARBVER:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=$(echo $TARBVER | cut -f 1,2 -d .) -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -126,11 +126,17 @@ for i in $( find $PKG/usr/man -type l ) ; do rm $i done +# Most of these docs are gone, but we'll keep trying ;-) mkdir -p $PKG/usr/doc/x3270-$TARBVER cp -a \ x3270/LICENSE* x3270/README* x3270/Examples \ README* \ $PKG/usr/doc/x3270-$TARBVER +# If there's no LICENSE, we do need to do something about that: +if [ ! -r $PKG/usr/doc/x3270-$TARBVER/LICENSE ]; then + sed -n '3,28p;28q' x3270/conf.h > $PKG/usr/doc/x3270-$TARBVER/LICENSE +fi +## COMMENTED OUT as there doesn't seem to be anything useful here any more: # Dereference symbolic links while copying html docs: mkdir -p $PKG/usr/doc/x3270-$TARBVER/html ( cd x3270/html |