public
Created

  • Download Gist
PKGBUILD
Shell
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
pkgname=mono3
pkgver=3.0.2
pkgrel=1
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
 
url="http://www.mono-project.com/"
arch=('i686' 'x86_64')
 
license=('GPL' 'LGPL2' 'MPL' 'custom:MITX11')
depends=('zlib' 'libgdiplus>=2.10' 'sh')
makedepends=('pkgconfig')
options=('!libtool' '!makeflags')
provides=('monodoc' 'mono=3.0.2')
conflicts=('monodoc' 'mono' 'mono-git')
md5sums=('c8a14c8c0a6013d865f81324830e0eec' '7d6ea0cea1776ec54a6de7f13f99f842')
source=("http://download.mono-project.com/sources/mono/mono-${pkgver}.tar.bz2" "archbuild.patch")
 
build()
{
cd ${srcdir}/mono-${pkgver}
 
patch -p1 < ${srcdir}/archbuild.patch
 
#build mono
./autogen.sh --prefix=/usr --sysconfdir=/etc \
--with-libgdiplus=installed
make || return 1
 
 
}
 
package() {
cd ${srcdir}/mono-${pkgver}
make DESTDIR=${pkgdir} install || return 1
 
 
#install license
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 mcs/MIT.X11 ${pkgdir}/usr/share/licenses/${pkgname}/
 
#fix the .pc file to be able to request mono on what it depends, fixes #go-oo build
sed -i -e "s:#Requires:Requires:" ${pkgdir}/usr/lib/pkgconfig/mono.pc
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.