From c59266011766838e102b389968aaedeefeb0f41a Mon Sep 17 00:00:00 2001 From: Martin Lefebvre Date: Tue, 11 May 2010 19:46:15 +0200 Subject: office/lyx: Updated for version 1.4.5.1 --- office/lyx/lyx.SlackBuild | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'office/lyx/lyx.SlackBuild') diff --git a/office/lyx/lyx.SlackBuild b/office/lyx/lyx.SlackBuild index aafaee85c1..0d44e04973 100644 --- a/office/lyx/lyx.SlackBuild +++ b/office/lyx/lyx.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for LyX -# Copyright 2006 Martin Lefebvre +# Copyright 2007 Martin Lefebvre # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Modified by the SlackBuilds.org project +set -e PRGNAM=lyx -VERSION=1.4.3 +VERSION=1.4.5.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -44,7 +45,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 cd $PRGNAM-$VERSION || exit 1 chown -R root:root . chmod -R a-s,u+w,go+r-w . @@ -62,9 +63,12 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --enable-shared \ --with-frontend=${_FRONTEND} \ --with-qt-dir=/usr/lib/qt \ --with-program-prefix="" \ + --with-aspell \ + --with-ispell \ || exit 1 make || exit 1 @@ -75,12 +79,10 @@ make install DESTDIR=$PKG || exit 1 find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) -if [ -d $PKG/usr/man ]; then ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; - for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + for i in $(find . -type l); do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION ( cd $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3-80-g2a13