by dan64 » Mon Dec 16, 2013 10:28 pm
At the moment I made the build partially by hand.
The steps that I have followed to build the package are:
1) Issues the following commands
$this->bbcode_second_pass_code('', '
git clone https://github.com/mono/mono.git
cd mono
git submodule init
git submodule update
')
2) After cloning and updating the mono repo and submodule, I have used the following PKGBUILD
$this->bbcode_second_pass_code('', '
pkgname=mono
pkgver=3.2.7
pkgrel=1
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
url="http://www.mono-project.com/"
arch=('armv7h' 'i686' 'x86_64')
license=('GPL' 'LGPL2' 'MPL' 'custom:MITX11')
depends=('zlib' 'libgdiplus>=2.10' 'sh')
makedepends=('git' 'pkgconfig' 'mono')
options=('!libtool' '!makeflags')
provides=('monodoc' 'mono=3.2.0')
conflicts=('monodoc')
install=mono.install
build()
{
cd ${startdir}/${pkgname}
./autogen.sh --prefix=/usr --sysconfdir=/etc --bindir=/usr/bin --sbindir=/usr/bin
make
# build jay
cd ${startdir}/${pkgname}/mcs/jay
make
}
package()
{
cd ${startdir}/${pkgname}
make DESTDIR=${pkgdir} install || return 1
# install jay
cd ${startdir}/${pkgname}/mcs/jay
make DESTDIR=${pkgdir} prefix=/usr INSTALL=../../install-sh install
cd ${startdir}/${pkgname}
# install binfmt conf file and pathes
install -D -m644 "${startdir}"/mono.binfmt.d "${pkgdir}"/usr/lib/binfmt.d/mono.conf
#install license
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 mcs/MIT.X11 ${pkgdir}/usr/share/licenses/${pkgname}/
}
')
I'm doing some experiment with a more complete (and maybe too complex) PKGBUILD, but it takes a lot of time to test, and I have some problem, so for the moment this is the only version that works well.