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>
This commit is contained in:
Steven Voges 2023-04-01 01:29:36 +01:00 committed by Willy Sudiarto Raharjo
parent 2c37848d8c
commit 2b2e2c1837
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 44 additions and 26 deletions

View file

@ -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

View file

@ -1,14 +1,14 @@
PRGNAM="mono"
VERSION="6.12.0.122"
VERSION="6.12.0.182"
HOMEPAGE="https://www.mono-project.com/"
DOWNLOAD="https://download.mono-project.com/sources/mono/mono-6.12.0.122.tar.xz \
DOWNLOAD="https://download.mono-project.com/sources/mono/mono-6.12.0.182.tar.xz \
http://sourceforge.net/projects/slackbuildsdirectlinks/files/mono/mono-4.4.2.11-i586.tar.bz2"
MD5SUM="c63315bd37bee9c9cc6c6cfbc484434f \
MD5SUM="3e7d4c67a03f4edc542c57d2684c9819 \
3f974dba179a452bdcd94659ddc47e33"
DOWNLOAD_x86_64="https://download.mono-project.com/sources/mono/mono-6.12.0.122.tar.xz \
DOWNLOAD_x86_64="https://download.mono-project.com/sources/mono/mono-6.12.0.182.tar.xz \
http://sourceforge.net/projects/slackbuildsdirectlinks/files/mono/mono-4.4.2.11-x86_64.tar.bz2"
MD5SUM_x86_64="c63315bd37bee9c9cc6c6cfbc484434f \
MD5SUM_x86_64="3e7d4c67a03f4edc542c57d2684c9819 \
daba2c08651c68566ee1214e03d5a080"
REQUIRES="libgdiplus"
MAINTAINER="Andre Barboza"
EMAIL="bmg.andre@gmail.com"
MAINTAINER="Steven Voges"
EMAIL="svoges.sbo@gmail.com"

View file

@ -13,7 +13,7 @@ mono: create cross platform applications.
mono: It is an open source implementation of Microsoft's .Net Framework
mono: based on the ECMA standards for C# and the Common Language Runtime.
mono:
mono: Last information can be found at
mono: https://www.mono-project.com/
mono: Homepage: https://www.mono-project.com
mono:
mono:
mono: