core/mono/PKGBUILD

55 lines
1.5 KiB
Bash
Raw Normal View History

pkgname=mono
2015-03-06 08:35:01 +08:00
pkgver=3.12.0
pkgrel=1
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
2015-03-06 08:35:01 +08:00
arch=(x86_64)
2014-11-28 06:03:49 +08:00
license=('GPL' 'LGPL2.1' 'MPL' 'custom:MITX11')
url="http://www.mono-project.com/"
2014-11-28 06:03:49 +08:00
depends=('zlib' 'libgdiplus>=3.8' 'sh' 'python')
options=('!makeflags')
provides=('monodoc')
conflicts=('monodoc')
2014-11-28 06:03:49 +08:00
source=(http://download.mono-project.com/sources/mono/${pkgname}-${pkgver}.tar.bz2
mono.binfmt.d)
2015-03-06 08:35:01 +08:00
sha1sums=('cec83efd13ffc1e212c632395a5aac75772a09e7'
2014-11-28 06:03:49 +08:00
'3c81ade946e6e3afab9f2e4eddc83023e01bfb85')
build() {
2014-11-28 06:03:49 +08:00
cd "${srcdir}"/${pkgname}-${pkgver}
# build mono
2014-11-28 06:03:49 +08:00
./configure --prefix=/usr \
--sysconfdir=/etc \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--disable-quiet-build \
--disable-system-aot \
--disable-static \
--with-mcs-docs=no
make
2011-04-02 18:45:18 +08:00
# build jay
2014-11-28 06:03:49 +08:00
cd "${srcdir}"/${pkgname}-${pkgver}/mcs/jay
make
2011-04-02 18:45:18 +08:00
}
package() {
2014-11-28 06:03:49 +08:00
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
2011-04-02 18:45:18 +08:00
# install jay
2014-11-28 06:03:49 +08:00
pushd "${srcdir}"/${pkgname}-${pkgver}/mcs/jay
make DESTDIR="${pkgdir}" prefix=/usr INSTALL=../../install-sh install
popd
2014-11-28 06:03:49 +08:00
# install binfmt conf file and pathes
install -D -m644 "${srcdir}"/mono.binfmt.d "${pkgdir}"/usr/lib/binfmt.d/mono.conf
#install license
2014-11-28 06:03:49 +08:00
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
install -m644 mcs/MIT.X11 "${pkgdir}"/usr/share/licenses/${pkgname}/
#fix .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
}