diff options
Diffstat (limited to 'development/mono/mono.SlackBuild')
-rw-r--r-- | development/mono/mono.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/development/mono/mono.SlackBuild b/development/mono/mono.SlackBuild index b6bd8dc2e1..52d4d16edc 100644 --- a/development/mono/mono.SlackBuild +++ b/development/mono/mono.SlackBuild @@ -23,13 +23,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -eu - PRGNAM=mono -VERSION=1.9.1 +VERSION=2.4 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -41,6 +40,8 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -eu + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -50,6 +51,10 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +# Fix configure.in and regenerate the build system +patch -p0 < $CWD/mono-2.x.configure.in.patch +autoreconf + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -71,7 +76,7 @@ gzip -9 $PKG/usr/man/man?/*.? find $PKG/etc -type f -exec mv -v {} {}.new \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install -cp -a AUTHORS COPYING.LIB ChangeLog LICENSE NEWS README docs/* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING.LIB LICENSE NEWS docs/* $PKG/usr/doc/$PRGNAM-$VERSION rm $PKG/usr/doc/$PRGNAM-$VERSION/Makefile* mv $PKG/usr/share/libgc-mono $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |