This commit is contained in:
Manuel 2012-05-02 22:37:04 +00:00
parent e6ac88f722
commit e7ce9cd0e3

View File

@ -1,23 +1,40 @@
# Maintainer: Pierre Buard <pierre.buard gmail com>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Platform packages for Chakra
pkgname=hunspell-fr
pkgver=3.7
pkgver=4.4.1
pkgrel=1
pkgdesc="A french dictionary for Hunspell"
arch=('any')
pkgdesc="French (modern) hunspell dictionaries"
arch=(any)
url="http://www.dicollecte.org/"
license=('GPL' 'LGPL' 'MPL')
depends=('hunspell')
conflicts=('firefox-spell-fr_fr')
source=(http://www.dicollecte.org/download/fr/hunspell-fr-classique-reforme1990-v3.7.zip)
md5sums=(1cffa2e282f5e4cc4d19453d37550916)
build() {
/bin/true
}
license=('GPL' 'MPL' 'LGPL')
optdepends=('hunspell: the spell checking libraries and apps')
source=(http://www.dicollecte.org/download/fr/${pkgname}-moderne-v${pkgver}.zip)
md5sums=('21797904e86e2faa2057cca18fc90105')
package() {
install -Dm644 ${srcdir}/fr-classique,reforme1990.dic ${pkgdir}/usr/share/myspell/fr_FR.dic
install -Dm644 ${srcdir}/fr-classique,reforme1990.aff ${pkgdir}/usr/share/myspell/fr_FR.aff
cd "${srcdir}"
install -dm755 ${pkgdir}/usr/share/hunspell
install -m644 fr-moderne.dic ${pkgdir}/usr/share/hunspell/fr_FR.dic
install -m644 fr-moderne.aff ${pkgdir}/usr/share/hunspell/fr_FR.aff
pushd ${pkgdir}/usr/share/hunspell/
fr_FR_aliases="fr_BE fr_CA fr_CH fr_LU"
for lang in ${fr_FR_aliases}; do
ln -s fr_FR.aff ${lang}.aff
ln -s fr_FR.dic ${lang}.dic
done
popd
# the symlinks
install -dm755 ${pkgdir}/usr/share/myspell/dicts
pushd ${pkgdir}/usr/share/myspell/dicts
for file in ${pkgdir}/usr/share/hunspell/*; do
ln -sv /usr/share/hunspell/$(basename ${file}) .
done
popd
# docs
install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
install -m644 README_fr.txt $pkgdir/usr/share/doc/${pkgname}/README_fr.txt
}