network/sphinx: Updated for version 0.9.7

This commit is contained in:
Michael Johnson 2010-05-13 00:38:19 +02:00 committed by Robby Workman
parent d755c90cf3
commit e1989bb776
2 changed files with 12 additions and 3 deletions

View file

@ -9,6 +9,7 @@ VERSION=0.9.7
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-sphinx PKG=$TMP/package-sphinx
@ -16,10 +17,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
rm -rf $PKG rm -rf $PKG
@ -35,15 +38,19 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc/sphinx \ --sysconfdir=/etc/sphinx \
--build=$ARCH-slackware-linux \
|| exit 1 || exit 1
make || exit 1 make || exit 1
make install DESTDIR=$PKG || exit 1 make install DESTDIR=$PKG || exit 1
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@ -54,4 +61,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG 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}

View file

@ -2,7 +2,9 @@ PRGNAM="sphinx"
VERSION="0.9.7" VERSION="0.9.7"
HOMEPAGE="http://www.sphinxsearch.com/" HOMEPAGE="http://www.sphinxsearch.com/"
DOWNLOAD="http://www.sphinxsearch.com/downloads/sphinx-0.9.7.tar.gz" DOWNLOAD="http://www.sphinxsearch.com/downloads/sphinx-0.9.7.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="32f2b7e98d8485c86108851d52c5cef4" MD5SUM="32f2b7e98d8485c86108851d52c5cef4"
MD5SUM_x86_64=""
MAINTAINER="Michael Johnson" MAINTAINER="Michael Johnson"
EMAIL="youngmug@animeneko.net" EMAIL="youngmug@animeneko.net"
APPROVED="rworkman" APPROVED="rworkman"