core/hunspell-gl/PKGBUILD

40 lines
1.0 KiB
Bash
Raw Normal View History

# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
2010-06-25 07:28:34 +08:00
pkgname=hunspell-gl
pkgver=20120819
pkgrel=1
2010-06-25 07:28:34 +08:00
pkgdesc="Galician spellchecker for Hunspell"
arch=('any')
url="http://trasno.net/"
license=('GPL3')
2010-06-25 07:28:34 +08:00
depends=('hunspell')
source=("http://webs.uvigo.es/miguelsolla/gl_ES.zip")
md5sums=('209fd16dd47e5cb334fa39563d23c79f')
2010-06-25 07:28:34 +08:00
lang="gl"
lang2="gl_ES"
2010-06-25 07:28:34 +08:00
package() {
install -d $pkgdir/usr/share/{hunspell,myspell/dicts,enchant}
2010-06-25 07:28:34 +08:00
# Actual installation...
install -Dm644 "$srcdir/$lang2.aff" "$pkgdir/usr/share/hunspell/$lang.aff"
install -Dm644 "$srcdir/$lang2.dic" "$pkgdir/usr/share/hunspell/$lang.dic"
# Locale aliases.
pushd $pkgdir/usr/share/hunspell
ln -s $lang.aff $lang2.aff
ln -s $lang.dic $lang2.dic
popd
# Myspell aliases.
pushd ${pkgdir}/usr/share/myspell/dicts
for file in ${pkgdir}/usr/share/hunspell/*; do
ln -sv /usr/share/hunspell/$(basename ${file}) .
done
popd
# Enchant aliases.
ln -s /usr/share/hunspell $pkgdir/usr/share/enchant/hunspell
2010-06-25 07:28:34 +08:00
}