blob: c6d78a38a3f1f31373a8217d8a320cb409d7919b (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mono
pkgver=3.12.1
pkgrel=0
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
url="http://www.mono-project.com/"
arch=""
license="GPL"
depends=""
depends_dev="zlib-dev libgdiplus-dev"
makedepends="$depends_dev python linux-headers autoconf automake libtool paxctl"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.mono-project.com/sources/mono/mono-$pkgver.tar.bz2
musl-fix.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
sed '/exec "/ i\paxctl -mr "$r/@mono_runtime@"' \
-i runtime/mono-wrapper.in \
|| return 1
}
build() {
cd "$_builddir"
./autogen.sh \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-nls \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--disable-quiet-build \
--disable-system-aot \
--disable-static \
--with-mcs-docs=no \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="ccab015f0c54ffeccd2924b44885809c mono-3.12.1.tar.bz2
493f2a7df6d05f3513e5823e6ce32b87 musl-fix.patch"
sha256sums="5d8cf153af2948c06bc9fbf5088f6834868e4db8e5f41c7cff76da173732b60d mono-3.12.1.tar.bz2
a51ed2b5fb533794dd5ac36a40e5db08dfa2fd142fe944dc81293b3ec59b0627 musl-fix.patch"
sha512sums="7ff87d95c347186347dc7a9ffb767112717de2b808f8f1b612c56c9eb70fdcc0c8f586989be44444509a2768e71854d8195567196c992cc2c5b184ecbe5ac190 mono-3.12.1.tar.bz2
772740bb7a070b299dd4edac30e859588c566ed83f937f087ea2eb1e72c5ecc75fabff3f49900a5c1fb7b059404cb31c9ce3528c2614f7142d66f98ae2c3e9de musl-fix.patch"
|