summaryrefslogtreecommitdiffstats
path: root/development/mono
diff options
context:
space:
mode:
Diffstat (limited to 'development/mono')
-rw-r--r--development/mono/README15
-rw-r--r--development/mono/doinst.sh3
-rw-r--r--development/mono/mono.SlackBuild67
-rw-r--r--development/mono/mono.info18
-rw-r--r--development/mono/slack-desc4
5 files changed, 69 insertions, 38 deletions
diff --git a/development/mono/README b/development/mono/README
index 407949725f..ce39213c0a 100644
--- a/development/mono/README
+++ b/development/mono/README
@@ -1,9 +1,9 @@
-Mono is a software platform designed to allow developers to easily create
-cross platform applications. It is an open source implementation of
-Microsoft's .Net Framework based on the ECMA standards for C# and the Common
-Language Runtime. We feel that by embracing a successful, standardized
-software platform, we can lower the barriers to producing great applications
-for Linux.
+Mono is a software platform designed to allow developers to
+easily create cross platform applications. It is an open source
+implementation of Microsoft's .Net Framework based on the ECMA
+standards for C# and the Common Language Runtime. We feel that by
+embracing a successful, standardized software platform, we can lower
+the barriers to producing great applications for Linux.
Note:
- Mono build relies on a working Mono C# compiler to compile itself
@@ -13,3 +13,6 @@ Note:
This is considered a "slightly more risky approach" to build Mono.
So, besides Mono sources, this SlackBuild uses a full featured
and precompiled Mono Compiler to bootstrap.
+
+ - After installing, it's recommended to run this command
+ /usr/bin/cert-sync /etc/ssl/certs/ca-certificates.crt
diff --git a/development/mono/doinst.sh b/development/mono/doinst.sh
index 543cb6f4c9..20f7c6c342 100644
--- a/development/mono/doinst.sh
+++ b/development/mono/doinst.sh
@@ -29,6 +29,3 @@ config etc/mono/4.5/machine.config.new
config etc/mono/4.5/settings.map.new
config etc/mono/4.5/web.config.new
config etc/mono/4.5/Browsers/Compat.browser.new
-
-usr/bin/mono-sgen usr/lib/mono/4.5/cert-sync.exe /etc/ssl/certs/ca-certificates.crt
-
diff --git a/development/mono/mono.SlackBuild b/development/mono/mono.SlackBuild
index 00681d3d7e..001fa62c3c 100644
--- a/development/mono/mono.SlackBuild
+++ b/development/mono/mono.SlackBuild
@@ -1,15 +1,37 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for mono
-# Written by Sebastián Salazar Molina <ssalazar@orangepeople.cl>
+
+# Copright 2023-2024 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:-5.0.1.1}
-MAJORVERSION=${MAJORVERSION:-5.0.1.1}
-BIN_VERSION=${BIN_VERSION:-4.4.2.11}
+VERSION=${VERSION:-6.12.0.205}
+BOOTSTRAP=${BOOTSTRAP:-4.4.2.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -19,7 +41,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -27,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
@@ -48,8 +74,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$MAJORVERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -60,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" \
@@ -75,10 +101,12 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
-
make
make install DESTDIR=$PKG
+rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.a
+rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la
+
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Don't clobber the config files
@@ -112,12 +140,15 @@ 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
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/mono/mono.info b/development/mono/mono.info
index fa7740dbef..312a8bcadb 100644
--- a/development/mono/mono.info
+++ b/development/mono/mono.info
@@ -1,14 +1,14 @@
PRGNAM="mono"
-VERSION="5.0.1.1"
+VERSION="6.12.0.205"
HOMEPAGE="https://www.mono-project.com/"
-DOWNLOAD="http://download.mono-project.com/sources/mono/mono-5.0.1.1.tar.bz2 \
- http://sourceforge.net/projects/slackbuildsdirectlinks/files/mono/mono-4.4.2.11-i586.tar.bz2"
-MD5SUM="17692c7a797f95ee6f9a0987fda3d486 \
+DOWNLOAD="https://download.mono-project.com/sources/mono/preview/mono-6.12.0.205.tar.xz \
+ http://sourceforge.net/projects/svoges-sbo/files/mono/mono-4.4.2.11-i586.tar.bz2"
+MD5SUM="413a241298161da75f8a34a0791cdd67 \
3f974dba179a452bdcd94659ddc47e33"
-DOWNLOAD_x86_64="http://download.mono-project.com/sources/mono/mono-5.0.1.1.tar.bz2 \
- http://sourceforge.net/projects/slackbuildsdirectlinks/files/mono/mono-4.4.2.11-x86_64.tar.bz2"
-MD5SUM_x86_64="17692c7a797f95ee6f9a0987fda3d486 \
+DOWNLOAD_x86_64="https://download.mono-project.com/sources/mono/preview/mono-6.12.0.205.tar.xz \
+ http://sourceforge.net/projects/svoges-sbo/files/mono/mono-4.4.2.11-x86_64.tar.bz2"
+MD5SUM_x86_64="413a241298161da75f8a34a0791cdd67 \
daba2c08651c68566ee1214e03d5a080"
REQUIRES="libgdiplus"
-MAINTAINER="Andre Barboza"
-EMAIL="bmg.andre@gmail.com"
+MAINTAINER="Steven Voges"
+EMAIL="svoges.sbo@gmail.com"
diff --git a/development/mono/slack-desc b/development/mono/slack-desc
index 5122d7b719..afddd556cc 100644
--- a/development/mono/slack-desc
+++ b/development/mono/slack-desc
@@ -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: