diff options
-rw-r--r-- | network/sphinx/sphinx.SlackBuild | 13 | ||||
-rw-r--r-- | network/sphinx/sphinx.info | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/network/sphinx/sphinx.SlackBuild b/network/sphinx/sphinx.SlackBuild index d38f47aeb6..81724be618 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 e9bf37efcf..a75d953689 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" |