<?xml version="1.0"?>
<package name="mono">
	<description>free c# compiler and ecma cli implementation</description>
	<releases>
		<release version="6.12.0.199" revision="2">
			<deps>
				<dep name="bc"/>
				<dep name="cmake"/>
				<dep name="glib-2.0"/>
				<dep name="nss" tag="ca-certificates"/>
				<dep name="pkgconfig"/>
				<dep name="zlib"/>
			</deps>
			<build>
				<script>
					<archive name="mono-$VERSION">
						<!-- fix build with CMake 4.0 -->
						<cmd>export CMAKE_POLICY_VERSION_MINIMUM=3.5</cmd>

						<cmd>./configure --disable-boehm --without-xen_opt --without-ikvm-native --without-mcs-docs</cmd>
						<cmd>make</cmd>
						<cmd>make install</cmd>

						<!-- work around upkg-watch limitation -->
						<cmd check="no">find /usr/lib/mono -type l | xargs touch</cmd>

						<!-- import CA certificates into Mono certificate store -->
						<cmd>cert-sync /etc/pki/tls/certs/ca-bundle.crt</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
