diff options
Diffstat (limited to 'multimedia/nted/nted.SlackBuild')
-rw-r--r-- | multimedia/nted/nted.SlackBuild | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/multimedia/nted/nted.SlackBuild b/multimedia/nted/nted.SlackBuild index cfe07adf9c..c8edc7bc36 100644 --- a/multimedia/nted/nted.SlackBuild +++ b/multimedia/nted/nted.SlackBuild @@ -2,8 +2,9 @@ # Slackware build script for nted #(http://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted.xhtml) +# 20180905 bkw: original homepage is long gone. -# Copyright 2008 Corrado Franco (http://www.conraid.net) +# Copyright 2008 Corrado Franco (email removed) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,11 +26,17 @@ # Modified by the SlackBuilds.org project +# 20180905 bkw: upstream has been dead a while, switch homepage to +# debian's package page, and use their patches. VERSION now 1.10.18_12, +# original version + debian patchlevel 12. The debian patches fix a few +# segfaults, and compile issues with later gcc versions (like the one +# in -current, and whatever will end up in 15.0). + # 20170621 bkw: fix build on -current (gcc7's pickier, use -Wno-narrowing) PRGNAM=nted -VERSION=${VERSION:-1.10.18} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.10.18_12} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -60,18 +67,32 @@ fi set -e +MAINVER="$( echo $VERSION | cut -d_ -f1 )" +DEBVER="$( echo $VERSION | cut -d_ -f2 )" + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$MAINVER +tar xvf $CWD/${PRGNAM}_$MAINVER.orig.tar.gz +cd $PRGNAM-$MAINVER +tar xvf $CWD/${PRGNAM}_$MAINVER-$DEBVER.debian.tar.xz 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 \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +for i in $( cat debian/patches/series ); do + patch -p1 < debian/patches/$i +done + +# The -Wno-error causes automake to be run with --warnings=no-error, +# but automake still says "warnings are being treated as errors". The +# thing it's warning about is configure.in should be named configure.ac, +# I have no idea how to turn off warnings as errors if the goddam +# --warnings=no-error command line flag doesn't work, so just rename +# the thing. I *really hate* this kinda pointless pedantry. +mv configure.in configure.ac +autoreconf -ivf -Wno-error LDFLAGS="$SLKLDFLAGS" \ CFLAGS="$SLKCFLAGS" \ |