aboutsummaryrefslogtreecommitdiff
path: root/network/urlview
diff options
context:
space:
mode:
authorMichael Wagner <lapinours@web.de>2010-05-13 00:38:38 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:38:38 +0200
commit353e8e538df83a2b06fe61729340d46d4245f82d (patch)
tree731853278a3bd6f4ddbbbb026ad1740f84703fa7 /network/urlview
parent04ad2daeeb649c3666390d799712414b4820c42a (diff)
network/urlview: Updated for version 0.9
Diffstat (limited to 'network/urlview')
-rw-r--r--network/urlview/doinst.sh1
-rw-r--r--network/urlview/urlview.SlackBuild15
-rw-r--r--network/urlview/urlview.info2
3 files changed, 14 insertions, 4 deletions
diff --git a/network/urlview/doinst.sh b/network/urlview/doinst.sh
index 4562d132b4aa..7c1d4672da8b 100644
--- a/network/urlview/doinst.sh
+++ b/network/urlview/doinst.sh
@@ -1,4 +1,3 @@
-# Handle configuration files
config() {
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
diff --git a/network/urlview/urlview.SlackBuild b/network/urlview/urlview.SlackBuild
index a9470fdbbc79..e3c54c66f1e5 100644
--- a/network/urlview/urlview.SlackBuild
+++ b/network/urlview/urlview.SlackBuild
@@ -26,6 +26,7 @@ VERSION=0.9
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -35,8 +36,13 @@ DOCS="AUTHORS COPYING ChangeLog INSTALL README"
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"
fi
rm -rf $PKG
@@ -58,14 +64,17 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
|| exit 1
make || exit 1
make install DESTDIR=$PKG || exit 1
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -89,4 +98,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/urlview/urlview.info b/network/urlview/urlview.info
index d320e9e581bb..b9989ff331a5 100644
--- a/network/urlview/urlview.info
+++ b/network/urlview/urlview.info
@@ -2,7 +2,9 @@ PRGNAM="urlview"
VERSION="0.9"
HOMEPAGE="ftp://ftp.mutt.org/pub/mutt/contrib/urlview-0.9.README"
DOWNLOAD="ftp://ftp.mutt.org/pub/mutt/contrib/urlview-0.9.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="67731f73e69297ffd106b65c8aebb2ab"
+MD5SUM_x86_64=""
MAINTAINER="Michael Wagner"
EMAIL="lapinours@web.de"
APPROVED="rworkman"