void-packages/srcpkgs/hunspell-fr_FR/template

60 lines
1.8 KiB
Bash

# Template file for 'hunspell-fr_FR'
pkgname=hunspell-fr_FR
version=6.2
revision=1
maintainer="Leah Neukirchen <leah@vuxu.org>"
homepage="http://www.dicollecte.org/home.php?prj=fr"
license="MPL-1.1"
hostmakedepends="unzip"
short_desc="French dictionary for hunspell"
distfiles="http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v${version}.zip"
checksum=c98147b99518a5aa51d51db58d6a153377bb9f366ebe8a21a2faa05b6c76308d
create_wrksrc=yes
noarch=yes
do_install() {
_variant="classique"
vinstall fr-${_variant}.aff 644 /usr/share/hunspell fr_FR.aff
vinstall fr-${_variant}.dic 644 /usr/share/hunspell fr_FR.dic
vdoc README_dict_fr.txt
}
hunspell-fr_FR-moderne_package() {
_variant="moderne"
short_desc+=" - Moderne Variant"
provides="${sourcepkg}-${version}_${revision}"
replaces="${sourcepkg}>=0"
noarch=yes
pkg_install() {
vinstall ${wrksrc}/fr-${_variant}.aff 644 /usr/share/hunspell fr_FR.aff
vinstall ${wrksrc}/fr-${_variant}.dic 644 /usr/share/hunspell fr_FR.dic
vdoc ${wrksrc}/README_dict_fr.txt
}
}
hunspell-fr_FR-reforme1990_package() {
_variant="reforme1990"
short_desc+=" - Reforme 1990 Variant"
provides="${sourcepkg}-${version}_${revision}"
replaces="${sourcepkg}>=0"
noarch=yes
pkg_install() {
vinstall ${wrksrc}/fr-${_variant}.aff 644 /usr/share/hunspell fr_FR.aff
vinstall ${wrksrc}/fr-${_variant}.dic 644 /usr/share/hunspell fr_FR.dic
vdoc ${wrksrc}/README_dict_fr.txt
}
}
hunspell-fr_FR-toutesvariantes_package() {
_variant="toutesvariantes"
short_desc+=" - All variant in one file"
provides="${sourcepkg}-${version}_${revision}"
replaces="${sourcepkg}>=0"
noarch=yes
pkg_install() {
vinstall ${wrksrc}/fr-${_variant}.aff 644 /usr/share/hunspell fr_FR.aff
vinstall ${wrksrc}/fr-${_variant}.dic 644 /usr/share/hunspell fr_FR.dic
vdoc ${wrksrc}/README_dict_fr.txt
}
}