aboutsummaryrefslogtreecommitdiff
path: root/misc/recode/recode.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryanpcmcquen@gmail.com>2014-05-03 07:39:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-03 07:39:37 +0700
commit7b5add4ed2f18b98a038f34fb98b63e5b7717e4b (patch)
tree90174b0969a29739ac045eea0e55cb63dbdb5aeb /misc/recode/recode.SlackBuild
parente25ebd9493088ed0b7f62d8c2295cea76c08ce4f (diff)
misc/recode: Updated for version 3.7_beta2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/recode/recode.SlackBuild')
-rw-r--r--misc/recode/recode.SlackBuild64
1 files changed, 36 insertions, 28 deletions
diff --git a/misc/recode/recode.SlackBuild b/misc/recode/recode.SlackBuild
index a08d2b691f236..9f87ad960eb0d 100644
--- a/misc/recode/recode.SlackBuild
+++ b/misc/recode/recode.SlackBuild
@@ -3,19 +3,38 @@
# Copyright (c) 2007 Niki Kovacs <contact@kikinovak.net>
# Copyright 2014 Ryan P.C. McQuen, WA, <ryan.q@linux.com>
#
-# By: Niki Kovacs <contact@kikinovak.net>
-# For: recode
-# URL: ftp://ftp.gnu.org/pub/gnu/recode/
+# Slackware build script for recode
# Modified by Robby Workman <rworkman@slackbuilds.org>
# Further small mods by Richard Hoyle <hoyle.richard@gmail.com>
# Updating and testing for Slackware (including x86_64 and Multilib)
# previously by Chris Abela <kristofru@gmail.com>
-# by Ryan P.C. McQuen, WA, <ryan.q@linux.com>
+# Now by Ryan P.C. McQuen
+
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=recode
-VERSION=3.6
-BUILD=${BUILD:-2}
+SRCNAM=Recode
+VERSION=${VERSION:-3.7_beta2}
+SRCVER=$(echo $VERSION | tr _ -)
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,23 +70,17 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz || tar xvf $CWD/v$SRCVER.tar.gz
+cd $SRCNAM-$SRCVER
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 {} \;
-# Some important fixes from debian and ubuntu.
-# We normally don't like this idea, as it puts us maintaining the upstream
-# sources, but in this case, we'll make an exception.
-# I *really* don't like the non-bugfix parts of the debian patch, but I
-# guess I'll let it slide --rworkman
-for patch in $CWD/patches/* ; do
- bzcat $patch | patch -p1 --verbose --backup || exit 1
-done
+# allow recode to be built on a gcc that is not ancient -ryan
+sed -i "s/bool ignore : 2;/bool ignore : 1;/g" ./src/recodext.h
# libdir and target are critical for x86_64
CFLAGS="$SLKCFLAGS" \
@@ -82,23 +95,18 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-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 {} \;
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+mv $PKG/usr/share/man/* $PKG/usr/man
+rm -rf $PKG/usr/share/man
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+mv $PKG/usr/share/info $PKG/usr/
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS AUTHORS BACKLOG COPYING* NEWS PATCHES-AC README THANKS TODO \
+cp -a ABOUT-NLS AUTHORS COPYING* NEWS README THANKS TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild