aboutsummaryrefslogtreecommitdiff
path: root/network/sphinx/sphinx.SlackBuild
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-03 15:56:11 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-09-04 02:23:25 -0400
commitf783542d53f255534caab6922f2103a37b9b5802 (patch)
tree87ee3f60f22550bc5089b1237505a5974a67b4b4 /network/sphinx/sphinx.SlackBuild
parentfaac92c77890b871fde10454d26e4ee4024f0c4d (diff)
network/sphinx: Updated for version 2.0.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/sphinx/sphinx.SlackBuild')
-rw-r--r--network/sphinx/sphinx.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/network/sphinx/sphinx.SlackBuild b/network/sphinx/sphinx.SlackBuild
index 016fee871a764..a34c8cf87b641 100644
--- a/network/sphinx/sphinx.SlackBuild
+++ b/network/sphinx/sphinx.SlackBuild
@@ -5,7 +5,7 @@
# Modified by the SlackBuilds.org project
PRGNAM=sphinx
-VERSION=0.9.9
+VERSION=2.0.5
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,9 +40,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $TMP/$PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION-release
+tar xvf $CWD/$PRGNAM-$VERSION-release.tar.gz
+cd $TMP/$PRGNAM-$VERSION-release
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
@@ -53,14 +53,19 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc/sphinx \
--localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+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 COPYING INSTALL doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild