diff options
author | Steven Voges <svoges.sbo@gmail.com> | 2023-04-01 01:29:36 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-04-01 09:14:18 +0700 |
commit | 2b2e2c1837cb43c659bc52e56235c36abc4da38e (patch) | |
tree | 65374cc5eda954b4851703602ae87a2d9d2300d7 /development/mono/mono.SlackBuild | |
parent | 2c37848d8c6d56d677dae479d4effc70dfef2c68 (diff) |
development/mono: Updated for version 6.12.0.182. New maintainer.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/mono/mono.SlackBuild')
-rw-r--r-- | development/mono/mono.SlackBuild | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/development/mono/mono.SlackBuild b/development/mono/mono.SlackBuild index df297ada5e93a..ecec2c4b293a4 100644 --- a/development/mono/mono.SlackBuild +++ b/development/mono/mono.SlackBuild @@ -1,15 +1,34 @@ #!/bin/bash # Slackware build script for mono -# Written by Sebastián Salazar Molina <ssalazar@orangepeople.cl> + +# Copright 2023 Steven Voges <Oregon, USA> +# Written by Sebastián Salazar Molina <ssalazar@orangepeople.cl> # Updated by Andre Barboza <bmg.andre@gmail.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mono -VERSION=${VERSION:-6.12.0.122} -MAJORVERSION=${MAJORVERSION:-6.12.0.122} -BIN_VERSION=${BIN_VERSION:-4.4.2.11} +VERSION=${VERSION:-6.12.0.182} +BOOTSTRAP=${BOOTSTRAP:-4.4.2.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -22,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -37,19 +53,19 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" - BOOTSTRAP_ARCH=i586 + BOOTSTRAPARCH=i586 elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" - BOOTSTRAP_ARCH=i586 + BOOTSTRAPARCH=i586 elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" - BOOTSTRAP_ARCH=x86_64 + BOOTSTRAPARCH=x86_64 else SLKCFLAGS="-O2" LIBDIRSUFFIX="" - BOOTSTRAP_ARCH=i586 + BOOTSTRAPARCH=i586 fi set -e @@ -59,7 +75,7 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$MAJORVERSION +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -70,9 +86,9 @@ find -L . \ # Use full featured precompiled mono version instead of monolite pushd $TMP -rm -rf $PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH -tar xvf $CWD/$PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH.tar.bz2 -export PATH="$TMP/$PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH/usr/bin:$PATH" +rm -rf $PRGNAM-$BOOTSTRAP-$BOOTSTRAPARCH +tar xvf $CWD/$PRGNAM-$BOOTSTRAP-$BOOTSTRAPARCH.tar.bz2 +export PATH="$TMP/$PRGNAM-$BOOTSTRAP-$BOOTSTRAPARCH/usr/bin:$PATH" popd CFLAGS="$SLKCFLAGS" \ @@ -85,7 +101,6 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux - make make install DESTDIR=$PKG @@ -124,8 +139,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -ar COPYING.LIB LICENSE NEWS README.md docs $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + *.md COPYING.LIB LICENSE NEWS docs \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/docs/abc-removal.txt mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |