aboutsummaryrefslogtreecommitdiff
path: root/network/sphinx
diff options
context:
space:
mode:
authorMichael Johnson <youngmug@animeneko.net>2010-05-13 00:38:19 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:38:19 +0200
commite1989bb77684b3da38ada0bad00002b5463c24cb (patch)
tree87685c269c165e78c46e6ea01ce9c3a14c6e78d8 /network/sphinx
parentd755c90cf3358b54b62b671972259ff9a3757882 (diff)
network/sphinx: Updated for version 0.9.7
Diffstat (limited to 'network/sphinx')
-rw-r--r--network/sphinx/sphinx.SlackBuild13
-rw-r--r--network/sphinx/sphinx.info2
2 files changed, 12 insertions, 3 deletions
diff --git a/network/sphinx/sphinx.SlackBuild b/network/sphinx/sphinx.SlackBuild
index d38f47aeb6b0..81724be618da 100644
--- a/network/sphinx/sphinx.SlackBuild
+++ b/network/sphinx/sphinx.SlackBuild
@@ -9,6 +9,7 @@ VERSION=0.9.7
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-sphinx
@@ -16,10 +17,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@@ -35,15 +38,19 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc/sphinx \
+ --build=$ARCH-slackware-linux \
|| 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
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -54,4 +61,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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/sphinx/sphinx.info b/network/sphinx/sphinx.info
index e9bf37efcff0..a75d95368904 100644
--- a/network/sphinx/sphinx.info
+++ b/network/sphinx/sphinx.info
@@ -2,7 +2,9 @@ PRGNAM="sphinx"
VERSION="0.9.7"
HOMEPAGE="http://www.sphinxsearch.com/"
DOWNLOAD="http://www.sphinxsearch.com/downloads/sphinx-0.9.7.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="32f2b7e98d8485c86108851d52c5cef4"
+MD5SUM_x86_64=""
MAINTAINER="Michael Johnson"
EMAIL="youngmug@animeneko.net"
APPROVED="rworkman"