summaryrefslogtreecommitdiff
path: root/office/texstudio/texstudio.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2012-06-25 21:40:44 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-06-25 21:40:44 -0400
commit47d8304e4d087c198ff4cdaa1fb1433a71122029 (patch)
treee035bced1b92fc7b57885cf389cbb1ddcac2142a /office/texstudio/texstudio.SlackBuild
parent2897afc405bda80f770b7b546ac2d20467ce3b6d (diff)
downloadslackbuilds-47d8304e4d087c198ff4cdaa1fb1433a71122029.tar.gz
office/texstudio: Updated for version 2.3.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'office/texstudio/texstudio.SlackBuild')
-rw-r--r--office/texstudio/texstudio.SlackBuild9
1 files changed, 4 insertions, 5 deletions
diff --git a/office/texstudio/texstudio.SlackBuild b/office/texstudio/texstudio.SlackBuild
index 906ccf1a94..0cb05b7c69 100644
--- a/office/texstudio/texstudio.SlackBuild
+++ b/office/texstudio/texstudio.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=texstudio
-VERSION=2.2
+VERSION=${VERSION:-2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -52,9 +52,9 @@ find . \
-exec chmod 644 {} \;
# Fix .desktop item.
-sed -i '/^Encoding/d' utilities/texstudio.desktop
+sed -i -e '/^Encoding/d' -e "/^Icon/s|=.*|=$PRGNAM|" utilities/texstudio.desktop
-qmake PREFIX=/usr LIBS+="-L/usr/lib${LIBDIRSUFFIX}" -o Makefile $PRGNAM.pro
+qmake PREFIX=/usr LIBS+="-L/usr/lib${LIBDIRSUFFIX}" CONFIG-=debug -o Makefile $PRGNAM.pro
make \
CFLAGS="-pipe $SLKCFLAGS -D_REENTRANT -Wall -W \$(DEFINES)" \
@@ -65,7 +65,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man1
-install -m 0644 $CWD/$PRGNAM.1 $PKG/usr/man/man1
+install -m 0644 utilities/$PRGNAM.1 $PKG/usr/man/man1
gzip -9 $PKG/usr/man/man?/*.?
for i in 16 22 32 48 64 128; do
@@ -75,7 +75,6 @@ done
install -D -m 0644 utilities/$PRGNAM.svg \
$PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
-rm -rf $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \