Browse Source

ap/muscle: Upgraded to muscle-3.8.1551.

current-20191101
parent
commit
d713438cd2
  1. 26
      ap/muscle/muscle.SlackBuild
  2. 1
      ap/muscle/muscle3.8.31_src.tar.gz.sha1
  3. 1
      ap/muscle/muscle_src_3.8.1551.tar.gz.sha256

26
ap/muscle/muscle.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2011 Damien Goutte-Gattat
# Copyright (C) 2011,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,9 +27,9 @@
# Source package infos
NAMESRC=${NAMESRC:-muscle}
VERSION=${VERSION:-3.8.31}
ARCHIVE=${ARCHIVE:-$NAMESRC${VERSION}_src.tar.gz}
WGET=${WGET:-http://www.drive5.com/muscle/downloads$VERSION/$ARCHIVE}
VERSION=${VERSION:-3.8.1551}
ARCHIVE=${ARCHIVE:-${NAMESRC}_src_${VERSION}.tar.gz}
WGET=${WGET:-http://www.drive5.com/muscle/$ARCHIVE}
DOC_FILE=muscle_userguide3.8.pdf
WGET_DOC=http://www.drive5.com/muscle/$DOC_FILE
@ -62,8 +62,8 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION
# Get the documentation
if [ ! -r $DOC_FILE ]; then
@ -73,18 +73,12 @@ fi
# Compile and install
cd $TMP
mkdir $NAME && cd $NAME
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME/src
head -n 3 mk > $$.sh
. $$.sh
for cppname in $CPPNames ; do
g++ -c -O3 -msse2 -mfpmath=sse -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 \
$cppname.cpp -o $cppname.o
done
g++ -o muscle $ObjNames
install -s -m 755 -D muscle $PKG/usr/bin/muscle
install -m 644 -D $CWD/$DOC_FILE \
make -j $JOBS
install -m 755 -D muscle $PKG/usr/bin/muscle
install -m 644 -D $CWD/$DOC_FILE \
$PKG/usr/doc/$NAMEPKG-$VERSION/user-manual.pdf
# Copy slack-desc file

1
ap/muscle/muscle3.8.31_src.tar.gz.sha1

@ -1 +0,0 @@
2fe55db73ff4e7ac6d4ca692f8f213d1c5071dac muscle3.8.31_src.tar.gz

1
ap/muscle/muscle_src_3.8.1551.tar.gz.sha256

@ -0,0 +1 @@
c70c552231cd3289f1bad51c9bd174804c18bb3adcf47f501afec7a68f9c482e muscle_src_3.8.1551.tar.gz
Loading…
Cancel
Save