Skip to content

Commit

Permalink
lyx: upgraded to 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
conraid committed Feb 10, 2015
1 parent 73cbdd4 commit 87c6782
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
31 changes: 11 additions & 20 deletions lyx/lyx.SlackBuild
Expand Up @@ -2,7 +2,7 @@
#
# Slackware build script for LyX (http://www.lyx.org/)
#
# Copyright 2008-2014 Corrado Franco (http://conraid.net)
# Copyright 2008-2015 Corrado Franco (http://conraid.net)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
Expand All @@ -23,15 +23,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Exit on most errors
set -e
set -eu

# Set variables:
CWD=$(pwd)

PRGNAME=${PRGNAME:-lyx}
PKGNAME=$(echo $PRGNAME | tr A-Z a-z)
VERSION=${VERSION:-2.1.2.2}
VERSION=${VERSION:-2.1.3}
BUILD=${BUILD:-1}
ARCH=${ARCH:=""} # Set ARCH or leave blank to determine it automatically
TAG=${TAG:-cf}
TMP=${TMP:-/tmp/pkg}
PKG=$TMP/package-$PRGNAME
Expand Down Expand Up @@ -94,13 +95,12 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--infodir=/usr/info \
--with-x \
--with-frontend=qt4 \
--without-included-boost \
--host=$CHOST-slackware-linux \
--build=$CHOST-slackware-linux

# Build and install:
make $JOBS
make
make DESTDIR=$PKG install-strip

# Compress and link manpages, if any:
Expand All @@ -113,25 +113,16 @@ fi

# Add a documentation directory:
mkdir -p ${DOCS}
for i in ${DOCFILES}; do
if [ -e ${i} ]; then
if ! [ -L ${i} ]; then
cp -a ${i} ${DOCS}
else
cp -LRp ${i} ${DOCS}
fi
fi;
done

# Add a doinst.sh
install -Dm644 $CWD/doinst.sh $PKG/install/doinst.sh
cp -a $DOCFILES $DOCS || true

# Add a slackbuild script:
cat $CWD/$PRGNAME.SlackBuild > $DOCS/$PRGNAME.SlackBuild
install -Dm644 $CWD/$PKGNAME.SlackBuild $DOCS/$PKGNAME.SlackBuild

# Add slack-desc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
install -Dm644 $CWD/slack-desc $PKG/install/slack-desc

# Add a doinst.sh
install -Dm644 $CWD/doinst.sh $PKG/install/doinst.sh

# Add a desktop file
install -Dm644 lib/$PKGNAME.desktop $PKG/usr/share/applications/$PKGNAME.desktop
Expand Down
6 changes: 3 additions & 3 deletions lyx/lyx.info
@@ -1,6 +1,6 @@
NAME="lyx"
VERSION="2.1.2.2"
VERSION="2.1.3"
HOMEPAGE="http://www.lyx.org"
DOWNLOAD="ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/lyx-2.1.2.2.tar.xz"
DOWNLOAD="ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/lyx-2.1.3.tar.xz"
REQUIRES=""
MD5SUM="28e4d0a75f60a6ae04dd297a85c1661c"
MD5SUM="b5794984a810a6cdc52675b1e5801914"

0 comments on commit 87c6782

Please sign in to comment.