mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/mono to 2.10.8-2
This commit is contained in:
parent
4fa7758141
commit
57916bc38b
3 changed files with 6 additions and 43 deletions
|
@ -6,11 +6,9 @@
|
|||
# - Added alarm.patch for armv7h to fix detection of VFP capability
|
||||
# and using autogen.sh to rebuild for configure.in changes.
|
||||
|
||||
plugrel=1
|
||||
|
||||
pkgname=mono
|
||||
pkgver=2.10.8
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
|
||||
arch=(i686 x86_64)
|
||||
license=('GPL' 'LGPL2' 'MPL' 'custom:MITX11')
|
||||
|
@ -21,10 +19,10 @@ options=('!libtool' '!makeflags')
|
|||
provides=('monodoc')
|
||||
conflicts=('monodoc')
|
||||
source=(http://download.mono-project.com/sources/${pkgname}/${pkgname}-${pkgver}.tar.gz
|
||||
mono.rc.d
|
||||
mono.binfmt.d
|
||||
alarm.patch)
|
||||
md5sums=('411a2d9bcfc37a61eb9aedba88b40533'
|
||||
'8315e46c6a6e9625502521fc0ad1a322'
|
||||
'b9ef8a65fea497acf176cca16c1e2402'
|
||||
'db43f2824188e4d1583b676f2e62db24')
|
||||
|
||||
build() {
|
||||
|
@ -54,9 +52,8 @@ package() {
|
|||
make DESTDIR=${pkgdir} prefix=/usr INSTALL=../../install-sh install
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
|
||||
# install daemons and pathes
|
||||
mkdir -p ${pkgdir}/etc/rc.d
|
||||
install -m755 ${srcdir}/mono.rc.d ${pkgdir}/etc/rc.d/mono
|
||||
# install binfmt conf file and pathes
|
||||
install -D -m644 ${srcdir}/mono.binfmt.d ${pkgdir}/usr/lib/binfmt.d/mono.conf
|
||||
|
||||
#install license
|
||||
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
|
||||
|
|
1
extra/mono/mono.binfmt.d
Normal file
1
extra/mono/mono.binfmt.d
Normal file
|
@ -0,0 +1 @@
|
|||
:CLR:M::MZ::/usr/bin/mono:
|
|
@ -1,35 +0,0 @@
|
|||
#!/bin/bash
|
||||
. /etc/rc.conf
|
||||
. /etc/rc.d/functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
stat_busy "Registering .NET IL binaries with mono"
|
||||
if [ ! -d /proc/sys/fs/binfmt_misc ]; then
|
||||
stat_die "You need support for \"misc binaries\" in your kernel!"
|
||||
fi
|
||||
mount | grep -q binfmt_misc
|
||||
if [ $? != 0 ]; then
|
||||
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
|
||||
if [ $? != 0 ]; then
|
||||
stat_die
|
||||
fi
|
||||
fi
|
||||
echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
|
||||
stat_done
|
||||
;;
|
||||
stop)
|
||||
|
||||
stat_busy "Unregistering .NET IL binaries"
|
||||
if [ -f /proc/sys/fs/binfmt_misc/CLR ]; then
|
||||
echo '-1' > /proc/sys/fs/binfmt_misc/CLR
|
||||
fi
|
||||
stat_done
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 {start|stop|restart}"
|
||||
esac
|
Loading…
Reference in a new issue