aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mono/APKBUILD
blob: b3a591191ae83a02d754107f532e6422a91577cf (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mono
pkgver=4.0.0_alpha1
pkgrel=0
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
url="http://www.mono-project.com/"
arch="all"
license="GPL"
depends=""
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"
	# supplied configure has 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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="192608d5c99100dd79756c2036f1feda  mono-4.0.0~alpha1.tar.bz2"
sha256sums="d536bdb07006d568e687124b9449464c98eebc93619dd704390376a1aacb15c3  mono-4.0.0~alpha1.tar.bz2"
sha512sums="0243fb847f20e3b5a4c1ada76314d860a27d48ea676eae646c31f3f6ada32035ecb2088dbfbe473a4235fbb416c1c8e4bef1358845d31785fa484dae737defa8  mono-4.0.0~alpha1.tar.bz2"