# Contributor: Carlo Landmeter # Maintainer: pkgname=mono pkgver=4.2.2.30 pkgrel=1 pkgdesc="Free implementation of the .NET platform including runtime and compiler" url="http://www.mono-project.com/" arch="x86_64 x86" license="GPL" depends="python" depends_dev="zlib-dev libgdiplus-dev" makedepends="$depends_dev python linux-headers paxmark autoconf automake libtool" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://download.mono-project.com/sources/mono/mono-${pkgver/_/~}.tar.bz2 arm-remove-sigcontext-include.patch mono-nunit-default-runtime-4.5.patch mono-un-revoke-fix-in-BNC-144655.patch strncat-process-c.patch " _builddir="$srcdir"/mono-${pkgver%.*} prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" # set the minimum arch for x86 to prevent atomic linker errors [ "$CARCH" = "x86" ] && export CFLAGS="$CFLAGS -march=i586 -mtune=generic" # autogen to fix supplied configure linker issues with make install ./autogen.sh \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-boehm \ --enable-parallel-mark \ --with-mcs-docs=no \ --without-sigaltstack \ || return 1 make get-monolite-latest # dirty hack to set paxmark on grsec kernels make || paxmark -mr mono/mini/mono-sgen && make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 # mark all bins scanelf --nobanner "$pkgdir"/usr/bin/* | awk '{print $2}' \ | xargs paxmark -mr } md5sums="2c5358041c931b8c1eabf0544565c9a3 mono-4.2.2.30.tar.bz2 81b20f045bb906dd2ea99b4153365387 arm-remove-sigcontext-include.patch 0643e579c4df750a4b416d30ab5d39b3 mono-nunit-default-runtime-4.5.patch e06fd0d4707927b23a6e736e7264bebb mono-un-revoke-fix-in-BNC-144655.patch f6efdeacbd0524ba4f665bd4ca31178a strncat-process-c.patch" sha256sums="57858cd033be9915d7abdc5158c1faae8fa05757c3b7117cab3d703aa696c56b mono-4.2.2.30.tar.bz2 5e522d89b84a450d507d05b59a496d006963260f4a953c107488cc2187df83bc arm-remove-sigcontext-include.patch b3962f77c25bb933fe384aa734855942089871cb0eaf48ca73fde92536d5bf18 mono-nunit-default-runtime-4.5.patch 14cfc87ce6722e5c9f1bf16272b05df2a8ee40b25aeea39b2558d203781f3767 mono-un-revoke-fix-in-BNC-144655.patch e3a88d0ab543660255b1c92185153bf12082e256933133fa2592a17dd43c17d3 strncat-process-c.patch" sha512sums="5aa93b362da84970310cc35bf02300718a20d2b508c263f45224d89f7aee84ead90c6fd7230ee2f17a2c02d480e3a8f7d2c9308cec0062a8f4c107f674a7c752 mono-4.2.2.30.tar.bz2 cc0382a1cba87fd2b76be46c6a2d28180cc489b10efe9359681fa85ce28d17e000dab0221f203f8f40a711fb6dddc3e39847cdf0a224344240a43d73971eccf8 arm-remove-sigcontext-include.patch fdae91b30f7a44b11057842cdc8cbf4f2994bd7c32af4c521de20a51324153f921f5d3bc1c12ccb90ed63b82ac2766ee8f710a380c638a8bda640e158afefdb3 mono-nunit-default-runtime-4.5.patch b0895e97741836408903ebaa36c72080758ac23acbc63c4bb5e8ded99fad1fd77cc895a7b8144faed65b67cd0c7aecd7c0e88fb3be3bc3aa84d73acef4405c6a mono-un-revoke-fix-in-BNC-144655.patch 1095a78c178de8ce67fb99d08734d8128edabbc261b5badf3e5d4c6b63ca3062d3759ee975bc437e1701c8cd10f0b4407a1f4e17604922310d406e88a0cce866 strncat-process-c.patch"