diff options
Diffstat (limited to 'libraries/microsoft-gsl/microsoft-gsl.SlackBuild')
-rw-r--r-- | libraries/microsoft-gsl/microsoft-gsl.SlackBuild | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/libraries/microsoft-gsl/microsoft-gsl.SlackBuild b/libraries/microsoft-gsl/microsoft-gsl.SlackBuild index ed091acc2c..3ee5419f30 100644 --- a/libraries/microsoft-gsl/microsoft-gsl.SlackBuild +++ b/libraries/microsoft-gsl/microsoft-gsl.SlackBuild @@ -25,19 +25,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=microsoft-gsl -VERSION=${VERSION:-4.0.0} +SRCNAM=GSL +ARCH=noarch +VERSION=${VERSION:-4.2.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -49,19 +43,14 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" elif [ "$ARCH" = "aarch64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -69,9 +58,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf GSL-$VERSION -tar xvf $CWD/GSL-$VERSION.tar.gz -cd GSL-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |