1 # Contributor: Maciej Sitarz <macieks@freesco.pl>
6 pkgdesc="Polish (Poland) dictionary for Hunspell"
8 url="http://www.sjp.pl/slownik/ort/"
9 license=("GPL" "LGPL" "CCPL:cc-by-sa" "MPL")
10 optdepends=('hunspell: the spell checking libraries and apps')
11 makedepends=(rpmextract)
12 source=(http://download.fedora.redhat.com/pub/fedora/linux/development/rawhide/x86_64/os/Packages/${pkgname}-0.${pkgver}-1.fc17.noarch.rpm)
13 md5sums=('967d073599790f6b6ac0a0a3517afbbd')
17 rpmextract.sh ${pkgname}-0.${pkgver}-1.fc17.noarch.rpm
21 cd "$srcdir"/usr/share
23 install -dm755 ${pkgdir}/usr/share/hunspell
24 install -m644 myspell/pl_PL.aff ${pkgdir}/usr/share/hunspell
25 install -m644 myspell/pl_PL.dic ${pkgdir}/usr/share/hunspell
28 install -dm755 ${pkgdir}/usr/share/myspell/dicts
29 pushd $pkgdir/usr/share/myspell/dicts
30 for file in $pkgdir/usr/share/hunspell/*; do
31 ln -sv /usr/share/hunspell/$(basename $file) .
36 install -dm755 ${pkgdir}/usr/share/doc/$pkgname
37 install -m644 doc/${pkgname}-0.${pkgver}/README_pl_PL.txt $pkgdir/usr/share/doc/$pkgname