aboutsummaryrefslogtreecommitdiff
path: root/office/asymptote/asymptote.SlackBuild
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds[at]schoepfer[dot]info>2018-05-05 11:00:17 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-12 06:58:22 +0700
commit49d2a7d865b1f785af0165eaa28626f2d2dd3a2f (patch)
tree8f75defe27b64cb58e9444726129f139ccca3a01 /office/asymptote/asymptote.SlackBuild
parentb8bc6ef423bb25a90002f39d125c299c59bfbbe1 (diff)
office/asymptote: Updated for version 2.44.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'office/asymptote/asymptote.SlackBuild')
-rw-r--r--office/asymptote/asymptote.SlackBuild34
1 files changed, 25 insertions, 9 deletions
diff --git a/office/asymptote/asymptote.SlackBuild b/office/asymptote/asymptote.SlackBuild
index d8881970df11b..c591eca5ff72e 100644
--- a/office/asymptote/asymptote.SlackBuild
+++ b/office/asymptote/asymptote.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for asymptote
-# Copyright 2016-2017 Johannes Schoepfer, Germany
+# Copyright 2016 - 2018 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=asymptote
-VERSION=${VERSION:-2.41}
+VERSION=${VERSION:-2.44}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -79,29 +79,45 @@ CFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-gc=system \
+ --enable-offscreen \
--with-latex=/usr/share/texmf-dist/tex/latex \
--with-context=/usr/share/texmf-dist/tex/context \
--datarootdir=/usr/share/texmf-dist \
--build=$ARCH-slackware-linux
-make
-make check
-make install DESTDIR=$PKG
+make -j1 all
+make -j1 check-all
+make -j1 install-all DESTDIR=$PKG
+
+rm -rf $PKG/usr/info/asymptote
+mkdir -p $PKG/usr/share/vim/vimfiles/syntax
+mv $PKG/usr/share/texmf-dist/asymptote/*.vim $PKG/usr/share/vim/vimfiles/syntax
+(
+ mkdir -p $PKG/usr/share/org.kde.syntax-highlighting/syntax
+ cd $PKG/usr/share/texmf-dist/asymptote/
+ sh asy-kate.sh
+ mv asymptote.xml $PKG/usr/share/org.kde.syntax-highlighting/syntax
+ rm asy-kate.sh
+)
+mkdir -p $PKG/usr/share/emacs/site-lisp
+mv $PKG/usr/share/texmf-dist/asymptote/*.el $PKG/usr/share/emacs/site-lisp
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 {} +
+find $PKG/usr/man -type f -exec gzip -9 {} +
for links in $(find $PKG/usr/man -type l ) ; do ln -sf $( readlink $links ).gz $links.gz;rm $links;done
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv BUGS ChangeLog INSTALL LICENSE LICENSE.LESSER README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
cd $PKG/usr/info
find . -type f -exec gzip -9 {} +
for links in $(find . -type l ) ; do ln -sf $( readlink $links ).gz $links.gz;rm $links;done
mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
cd $PKG
/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}