45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template file for 'hunspell-fr_FR'
|
|
pkgname=hunspell-fr_FR
|
|
version=7.0
|
|
revision=2
|
|
create_wrksrc=yes
|
|
hostmakedepends="unzip"
|
|
short_desc="French dictionary for hunspell"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MPL-1.1"
|
|
homepage="http://www.dicollecte.org/home.php?prj=fr"
|
|
distfiles="http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v${version}.zip"
|
|
checksum=eb7ac36dc14b9c3e3c0cabae0f90304a137da8e6ae607bcaf56d65720fbd097f
|
|
|
|
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
|
|
vdoc $FILESDIR/README.voidlinux
|
|
}
|
|
|
|
hunspell-fr_FR-reforme1990_package() {
|
|
_variant="reforme1990"
|
|
short_desc+=" - Reforme 1990 Variant"
|
|
provides="${sourcepkg}-${version}_${revision}"
|
|
replaces="${sourcepkg}>=0"
|
|
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"
|
|
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
|
|
}
|
|
}
|