diff options
author | Petar Petrov <slackalaxy@gmail.com> | 2020-05-22 23:39:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-05-22 23:39:23 +0700 |
commit | ec11283d0bb9ac35f712d56176ebdc8e649ccdc9 (patch) | |
tree | ff553cc5865623cf9e38936f6bafd0434911d324 /academic/muscle/muscle.SlackBuild | |
parent | c57f7c320114e3d8ad233b9626e140dbcb2ceb27 (diff) | |
download | slackbuilds-ec11283d0bb9ac35f712d56176ebdc8e649ccdc9.tar.gz |
academic/muscle: Update script and added manual page.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/muscle/muscle.SlackBuild')
-rw-r--r-- | academic/muscle/muscle.SlackBuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/academic/muscle/muscle.SlackBuild b/academic/muscle/muscle.SlackBuild index 9e69c5b702..2258892211 100644 --- a/academic/muscle/muscle.SlackBuild +++ b/academic/muscle/muscle.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for muscle -# Copyright 2011-2019 Petar Petrov slackalaxy@gmail.com +# Copyright 2011-2020 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,9 +24,11 @@ PRGNAM=muscle VERSION=${VERSION:-3.8.1551} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +MANUAL=muscle_userguide3.8.pdf + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -63,6 +65,7 @@ rm -rf ${PRGNAM}-${VERSION} mkdir -p ${PRGNAM}-${VERSION} cd ${PRGNAM}-${VERSION} tar xvf $CWD/${PRGNAM}_src_${VERSION}.tar.gz +tar xvf $CWD/stable.tar.gz chown -R root:root . find -L . \ @@ -78,12 +81,21 @@ CFLAGS="$SLKCFLAGS" \ make install -D -m755 $PRGNAM $PKG/usr/bin/$PRGNAM +install -D -m755 stable.py $PKG/usr/bin/$PRGNAM-stable.py + +# Thanks to Debian for the man page +mkdir -p $PKG/usr/man/man1 +cp $CWD/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 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 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/$MANUAL > $PKG/usr/doc/$PRGNAM-$VERSION/$MANUAL cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References mkdir -p $PKG/install |