# Contributor: Carlo Landmeter # Maintainer: pkgname=mono pkgver=4.0.1 pkgrel=1 pkgdesc="Free implementation of the .NET platform including runtime and compiler" url="http://www.mono-project.com/" arch="all" 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" _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 atmomic 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-quiet-build \ --disable-system-aot \ --disable-static \ --with-mcs-docs=no \ --disable-boehm \ --without-sigaltstack \ || return 1 # dirty hack to set paxmark on grsec kernels make || paxmark -mr mono/mini/.libs/lt-mono-sgen && make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 # mark all bins paxmark -mr "$pkgdir"/usr/bin/* rm -f "$pkgdir"/usr/lib/*.la } md5sums="426065ce1aba25fd3e776ea736c5f430 mono-4.0.1.tar.bz2" sha256sums="ff1f15f3b8d43c6a2818c00fabe377b2d8408ad14acd9d507658b4cae00f5bce mono-4.0.1.tar.bz2" sha512sums="b021ef977a1044718ea16b5f2ed50c2a75a469b1f359ae397acb830ad2e9406bb83129856d4975c39146ec464fe4e0a665b9e80a473ccfeb835eb9198717763b mono-4.0.1.tar.bz2"