<package name="dietlibc">
	<description short="Minimal C Library">Minimal C Library</description>

	<releases>
		<release version="0.32">
			<sha1>9b7041a00022bb16133e9cc9d0e922f4dc224097</sha1>
		</release>

		<source>
			<url>http://ftp.gts.lug.ro/kernel/linux/libs/dietlibc/dietlibc-0.32.tar.bz2</url>
		</source>
	</releases>

	<script name="compile" interp="/bin/sh">
		make "prefix=${_APPBOX_PREFIX}" || exit 1
		make "prefix=${_APPBOX_PREFIX}" dyn || exit 1

		exit 0
	</script>

	<script name="install" interp="/bin/sh">
		mkdir "${destroot}/etc"

		make DESTDIR="${destroot}" "prefix=${_APPBOX_PREFIX}" install || exit 1

		mkdir -p "${destroot}/system/config"
		mv "${destroot}/etc"/* "${destroot}/system/config/"
		rmdir "${destroot}/etc"

		exit 0
	</script>
</package>
