blob: 9cf9d85600fd71dd1f4552df1f0423614c12983b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mono
pkgver=4.6.1.5
pkgrel=0
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
url="http://www.mono-project.com/"
arch="x86_64 x86"
license="GPL"
depends="python2"
depends_dev="zlib-dev libgdiplus-dev"
makedepends="$depends_dev python2 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
"
_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="601a96baa96a2e7acde1fb7e622322c4 mono-4.6.1.5.tar.bz2
81b20f045bb906dd2ea99b4153365387 arm-remove-sigcontext-include.patch"
sha256sums="3871ee72bdfc2ea5d636ffff22cf49ae6bac7c4a4f3d687214dd8ac236bbf7c3 mono-4.6.1.5.tar.bz2
5e522d89b84a450d507d05b59a496d006963260f4a953c107488cc2187df83bc arm-remove-sigcontext-include.patch"
sha512sums="1d0c1ec2930ecea3faf1be572bc045300ef4a90d3fe7519f2a9c797be79298c61528d83baa5a24a57143a35be80f78297196556c33cd0f345d9907a973fe625a mono-4.6.1.5.tar.bz2
cc0382a1cba87fd2b76be46c6a2d28180cc489b10efe9359681fa85ce28d17e000dab0221f203f8f40a711fb6dddc3e39847cdf0a224344240a43d73971eccf8 arm-remove-sigcontext-include.patch"
|