aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mono/APKBUILD
blob: 34f105683d4759a54a223d7da447d0fec3d5814a (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
68
69
70
71
72
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mono
pkgver=4.0.4.1
pkgrel=0
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
	assume-UTC-if-no-TZ-set.patch
	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 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
	scanelf --nobanner "$pkgdir"/usr/bin/* | awk '{print $2}' \
		| xargs paxmark -mr
}

md5sums="f598b60a664dfebb1a5eef3e66a9a178  mono-4.0.4.1.tar.bz2
4a762b5e095baf78705d39fc2918fca7  assume-UTC-if-no-TZ-set.patch
81b20f045bb906dd2ea99b4153365387  arm-remove-sigcontext-include.patch"
sha256sums="ed11ed20ce5930c775af02bd41c43658bc9320f0bfd592fbb9895d95104dbcf9  mono-4.0.4.1.tar.bz2
1be0b3ecf2949d79298f5b449b710a78610933f165fe2c10c37b84cf26383f56  assume-UTC-if-no-TZ-set.patch
5e522d89b84a450d507d05b59a496d006963260f4a953c107488cc2187df83bc  arm-remove-sigcontext-include.patch"
sha512sums="2f299e97dd3014c9d221677e73e5134a0c0a5b27e479fb60aabc2b3eddedf07f525f3a74194ccbfdf8efe63d7ea72850f8ee64d6f15f51bccd5db0df6c1b3722  mono-4.0.4.1.tar.bz2
aa294f81fb7f5815ef37ad191e41766836e95bf3e0ce2592e6da88cbb6c2e408b2e4cbd9c81d39f3e575ba3f1590dba5abe26d8b465b56d3f25e228dbb0ddf70  assume-UTC-if-no-TZ-set.patch
cc0382a1cba87fd2b76be46c6a2d28180cc489b10efe9359681fa85ce28d17e000dab0221f203f8f40a711fb6dddc3e39847cdf0a224344240a43d73971eccf8  arm-remove-sigcontext-include.patch"