<?xml version="1.0"?>
<package name="writing-aid-de_CH">
	<description>dictionary, hyphenation and thesaurus for 'de_CH'</description>
	<releases>
		<release version="20101204" revision="3">
			<deps>
				<dep name="hunspell"/>
				<dep name="hyphen"/>
				<dep name="mythes"/>
				<dep name="unzip"/>
			</deps>
			<build>
				<sources>
					<file>dict-de_CH-frami_$VERSION.oxt</file>
				</sources>
				<script>
					<cmd>rm -rf hunspell-dictionary</cmd>
					<cmd>mkdir hunspell-dictionary</cmd>
					<cmd>pushd hunspell-dictionary</cmd>
					<cmd>unzip $PACKAGESOURCEDIR/dict-de_CH-frami_$VERSION.oxt</cmd>
					<cmd>install -dv /usr/share/hunspell</cmd>
					<!-- LibO can't find the dictionary if it has the "_frami" ending -->
					<cmd>cp de_CH_frami/de_CH_frami.dic /usr/share/hunspell/de_CH.dic</cmd>
					<cmd>cp de_CH_frami/de_CH_frami.aff /usr/share/hunspell/de_CH.aff</cmd>
					<cmd>install -dv /usr/share/hyphen</cmd>
					<cmd>cp hyph_de_*/*.dic /usr/share/hyphen</cmd>
					<cmd>install -dv /usr/share/mythes</cmd>
					<cmd>cp thes_*_v2/*.{dat,idx} /usr/share/mythes</cmd>
					<cmd>popd</cmd>
					<cmd>rm -rf hunspell-dictionary</cmd>
				</script>
			</build>
		</release>
	</releases>
</package>
