<?xml version="1.0"?>
<package name="writing-aid-fr">
	<description>dictionary, hyphenation and thesaurus for 'fr'</description>
	<releases>
		<release version="4.1" revision="3">
			<deps>
				<dep name="hunspell"/>
				<dep name="hyphen"/>
				<dep name="mythes"/>
				<dep name="unzip"/>
			</deps>
			<build>
				<sources>
					<file>ooo-dictionnaire-fr-moderne-v$VERSION.oxt</file>
				</sources>
				<script>
					<cmd>rm -rf hunspell-dictionary</cmd>
					<cmd>mkdir hunspell-dictionary</cmd>
					<cmd>pushd hunspell-dictionary</cmd>
					<cmd>unzip $PACKAGESOURCEDIR/ooo-dictionnaire-fr-moderne-v$VERSION.oxt</cmd>
					<cmd>install -dv /usr/share/hunspell</cmd>
					<!-- LibO can't find the dictionary if it has the "_moderne" ending -->
					<cmd>cp dictionaries/fr-moderne.dic /usr/share/hunspell/fr_FR.dic</cmd>
					<cmd>cp dictionaries/fr-moderne.aff /usr/share/hunspell/fr_FR.aff</cmd>
					<cmd>install -dv /usr/share/hyphen</cmd>
					<cmd>cp dictionaries/hyph_fr.dic /usr/share/hyphen</cmd>
					<cmd>install -dv /usr/share/mythes</cmd>
					<cmd>cp dictionaries/thes_fr.{dat,idx} /usr/share/mythes</cmd>
					<cmd>popd</cmd>
					<cmd>rm -rf hunspell-dictionary</cmd>
				</script>
			</build>
		</release>
	</releases>
</package>
