aboutsummaryrefslogtreecommitdiff
path: root/network/surfraw/surfraw.SlackBuild
diff options
context:
space:
mode:
authorGrigorios Bouzakis <grbzks@xsmail.com>2011-07-24 17:23:02 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-08-11 20:23:15 -0300
commit2374948e851639d31393e776916d62ff9e9925cb (patch)
tree8351ba3883f15df01559f18290cc6b366c7ebab7 /network/surfraw/surfraw.SlackBuild
parent8a6e7eae5741a65c390b179b60fedb83730a4a76 (diff)
network/surfraw: Updated for version 2.2.8.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/surfraw/surfraw.SlackBuild')
-rw-r--r--network/surfraw/surfraw.SlackBuild48
1 files changed, 12 insertions, 36 deletions
diff --git a/network/surfraw/surfraw.SlackBuild b/network/surfraw/surfraw.SlackBuild
index 47859c9500c58..78ef71a85bd6b 100644
--- a/network/surfraw/surfraw.SlackBuild
+++ b/network/surfraw/surfraw.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for surfraw
# Copyright 2007 Martin Lefebvre <dadexter@slackadelic.com>
-# Copyright 2010 Grigorios Bouzakis <grbzks@xsmail.com>
+# Copyright 2010-2011 Grigorios Bouzakis <grbzks@xsmail.com>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -21,47 +21,19 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=surfraw
-VERSION=${VERSION:-2.2.7}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.2.8}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
DOCS="AUTHORS COPYING ChangeLog HACKING INSTALL NEWS README TODO"
-OPENSEARCH=${OPENSEARCH:-false}
-
-if [ "${OPENSEARCH}" = "true" ] ; then
- OPENSEARCH_ARGS="--enable-opensearch"
- else
- OPENSEARCH_ARGS="--disable-opensearch"
-fi
-
set -e
rm -rf $PKG
@@ -77,16 +49,17 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+# fix man page symlinking
+sed -i 's,\.gz,,g' links.IN
+
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- ${OPENSEARCH_ARGS} \
+ --disable-opensearch \
+ --with-elvidir=/usr/share/surfraw \
--build=$ARCH-slackware-linux
make
@@ -95,6 +68,9 @@ make install DESTDIR=$PKG
mv $PKG/etc/xdg/surfraw/conf $PKG/etc/xdg/surfraw/conf.new
mv $PKG/etc/xdg/surfraw/bookmarks $PKG/etc/xdg/surfraw/bookmarks.new
+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
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild