aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mono/APKBUILD
blob: 75137e872626ef4c67b525d577d26263a80f2767 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: blattersturm <peachypies@protonmail.ch>
# Maintainer:
pkgname=mono
pkgver=5.0.1.1
pkgrel=0
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
url="http://www.mono-project.com/"
#arch="x86_64 x86"
arch=""
license="GPL"
depends="python2"
depends_dev="zlib-dev libgdiplus-dev"
makedepends="$depends_dev python2 linux-headers paxmark autoconf automake libtool cmake"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.mono-project.com/sources/mono/mono-${pkgver/_/~}.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

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

	make get-monolite-latest

	# dirty hack to set paxmark on grsec kernels
	make || paxmark -mr mono/mini/mono-sgen && make
}

package() {
	cd "$builddir"

	make -j1 DESTDIR="$pkgdir" install

	# mark all bins
	scanelf --nobanner "$pkgdir"/usr/bin/* | awk '{print $2}' \
		| xargs paxmark -mr
}

sha512sums="de2a8a3580b8236bafdc7e6967d68da08bf2dc775bce5166aba6134c1b986ae7fc56b97743d5122de14bf8fe074d3508c07324735616439dea0913633ee817da  mono-5.0.1.1.tar.bz2"