updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / hunspell-pl / PKGBUILD
blob34f859035ef22fcd1753349e9164db2a9301612f
1 # Contributor: Maciej Sitarz <macieks@freesco.pl>
3 pkgname=hunspell-pl
4 pkgver=20111017
5 pkgrel=2
6 pkgdesc="Polish (Poland) dictionary for Hunspell"
7 arch=(any)
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')
15 build() {
16         cd ${srcdir}
17         rpmextract.sh ${pkgname}-0.${pkgver}-1.fc17.noarch.rpm
20 package() {
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
27         # the symlinks
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) .
32         done
33         popd
35         # docs
36         install -dm755 ${pkgdir}/usr/share/doc/$pkgname
37         install -m644 doc/${pkgname}-0.${pkgver}/README_pl_PL.txt $pkgdir/usr/share/doc/$pkgname