diff options
Diffstat (limited to 'office/tudu/tudu.SlackBuild')
-rw-r--r-- | office/tudu/tudu.SlackBuild | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/office/tudu/tudu.SlackBuild b/office/tudu/tudu.SlackBuild index 947b42762a..41041e0f3d 100644 --- a/office/tudu/tudu.SlackBuild +++ b/office/tudu/tudu.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for tudu -# Copyright 2016 Jostein Berntsen <jbernts@broadpark.no> +# Copyright 2016-2022 Jostein Berntsen <jvbernts@online.no> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,11 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220217 bkw: Modified by SlackBuilds.org: fix build if PDCurses happens +# to be installed on the build host. + +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tudu -VERSION=${VERSION:-0.10.2} +VERSION=${VERSION:-0.10.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +41,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} @@ -66,9 +75,20 @@ 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 {} \+ + +# 20220217 bkw: PDCurses installs a /usr/include/xcurses.h that +# lacks support for wide characters. Forcing HAVE_XCURSES_H=0 +# prevents this build from failing if PDCurses happens to +# be installed. Note to fellow admins: this is why you have to also +# test SlackBuilds on a 'polluted' system with lots of packages +# installed. If you only ever tested on a clean VM with no SBo +# packages, you'd never find this issue (but our users would, because +# they don't do the clean VM thing). + +sed -i '/^check_include *HAVE_XCURSES_H/aHAVE_XCURSES_H=0' configure CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -97,4 +117,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc 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 |