void-packages/srcpkgs/mono/template
2018-10-09 14:01:42 +02:00

43 lines
1.3 KiB
Bash

# Template file for 'mono'
pkgname=mono
version=5.16.0.179
revision=1
wrksrc="mono-${version}"
lib32disabled=yes
build_style=gnu-configure
configure_args="--disable-system-aot"
# XXX: figure out how to split this up into subpkgs.
hostmakedepends="perl python cmake"
makedepends="zlib-devel libX11-devel libgdiplus-devel"
depends="ca-certificates python"
short_desc="Free implementation of the .NET platform including runtime and compiler"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
homepage="http://www.mono-project.com"
license="MIT, BSD-3-Clause, GPL-2.0-or-later, LGPL-2.0-or-later, MPL-1.1"
distfiles="http://download.mono-project.com/sources/mono/${pkgname}-${version}.tar.bz2"
checksum=93839af2ef0b8796935d8c1efd4cc693bc294bb2beb657b9edb6b4764f01e12b
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;
esac
if [ "$CROSS_BUILD" ]; then
configure_args+=" ac_cv_func_shm_open_working_with_mmap=no"
fi
post_install() {
# Avoid conflict with chicken's csc and csi compiler
mv ${DESTDIR}/usr/bin/csc ${DESTDIR}/usr/bin/mono-csc
mv ${DESTDIR}/usr/bin/csi ${DESTDIR}/usr/bin/mono-csi
vlicense LICENSE
}
mono-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}