summaryrefslogtreecommitdiffstats
path: root/office/lyx/lyx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/lyx/lyx.SlackBuild')
-rw-r--r--office/lyx/lyx.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/office/lyx/lyx.SlackBuild b/office/lyx/lyx.SlackBuild
index a062abe012..f0c296c334 100644
--- a/office/lyx/lyx.SlackBuild
+++ b/office/lyx/lyx.SlackBuild
@@ -1,13 +1,16 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for LyX
# Written by Morten Juhl-Johansen Zölde-Fejér <mjjzf@syntaktisk.dk>
# Now maintained by R. S. Ananda Murthy (rsamurti@gmail.com)
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=lyx
-VERSION=${VERSION:-2.3.5.2}
+VERSION=${VERSION:-2.3.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -17,7 +20,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -42,8 +52,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
-cd $PRGNAM-2.3.5.2
+tar xvf $CWD/$PRGNAM-$VERSION-1.tar.xz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -79,4 +89,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE