1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
Source: ipolish
Section: text
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.5.6
Upstream-Source: <URL:ftp://ftp.icm.edu.pl/pub/unix/polish-ispell/>
Description: the polish dictionary
Packaged-For: Debian
Copyright: LGPL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
Major-Changes:
none
Build-Depends: ispell
Build: sh
mkdir tmp
cat $(cat debian/ipolish.polish.desc | grep "Dictionary:" | cut -d' ' -f2) | \
grep -v "^/" | sort | icombine polish.aff > tmp/polish.dict
buildhash tmp/polish.dict polish.aff tmp/polish.hash
cat tmp/polish.dict | ispell -d tmp/polish -e | tr '\040' '\012' | \
sort -u > tmp/polish.words
Clean: sh
rm -rf tmp || true
Package: ipolish
Architecture: any
Depends: ispell, []
Provides: ispell-dictionary
Description: The polish dictionary for ispell.
This is the polish dictionary, to be used with the ispell program,
version 3.1.04 and following. The dictionary contains roughly
140,000 roots, which expand to about 1,400,000 words.
Install: sh
yada install -script -into /usr/sbin -as update-ipolish-hash debian/ipolish.update-ispell-hash
yada install -data -into /usr/lib/ispell polish.aff
yada install -dir /var/lib/ispell
dh_link -p$PACKAGE -P$ROOT /var/lib/ispell/polish.hash /usr/lib/ispell/polish.hash
yada install -data -into /usr/share/ispell -as polish.desc debian/ipolish.polish.desc
for i in $(cat debian/ipolish.polish.desc | grep "Dictionary:" | cut -d' ' -f2); do
test -d $ROOT/usr/share/ispell/polish/$(dirname $i) || \
yada install -dir /usr/share/ispell/polish/$(dirname $i)
cat $i | gzip -9 > $ROOT/usr/share/ispell/polish/$i.gz
done
yada install -man -as update-ipolish-hash.1 debian/ipolish.update-ispell-hash.1
yada install -doc -subdir pl -as README CZYTAJ.TO
yada install -doc -subdir pl -as README.devel debian/ipolish.README.devel
ln -s pl/README $ROOT/usr/share/doc/$PACKAGE/README
ln -s pl/README.devel $ROOT/usr/share/doc/$PACKAGE/README.devel
yada perl
Postinst: sh
if ! ( update-alternatives --display ispell-dictionary.hash | grep /usr/lib/ispell/polish.hash >/dev/null); then
update-alternatives --install /usr/lib/ispell/default.hash ispell-dictionary.hash /usr/lib/ispell/polish.hash 10 \
--slave /usr/lib/ispell/default.aff ispell-dictionary.aff /usr/lib/ispell/polish.aff
fi
if [ "$1" = "configure" ]; then
update-ipolish-hash -d polish >/dev/null
echo ""
echo "Please note that you can run '/usr/sbin/update-ipolish-hash'"
echo "to rebuild hash for ispell dictionary."
echo ""
if [ -z "$2" -o "$2" = "<unknown>" ]; then
update-ispell-dictionary
fi
echo "Please note that you can run '/usr/sbin/update-ispell-dictionary'"
echo "to change the default ispell dictionary."
echo ""
echo "KONTAKT Z AUTORAMI SOWNIKA"
echo ""
echo "Wszelkie uwagi dotyczce niniejszego sownika naley kierowa na list"
echo "slownik@ia.pw.edu.pl lub Miroslaw.Prywata@fuw.edu.pl, MACEWICZ@ia.pw.edu.pl"
echo "gacek@ds14.agh.edu.pl"
echo ""
fi
Prerm: sh
if [ "$1" != "upgrade" ]; then
update-alternatives --remove ispell-dictionary.hash /usr/lib/ispell/polish.hash
fi
if [ "$1" = "remove" ]; then
if [ -n "`update-alternatives --display ispell-dictionary.hash \
| grep polish | grep 999`" ]; then
update-ispell-dictionary
fi
fi
Postrm: sh
if [ "$1" = "purge" ]; then
rm -f /var/lib/ispell/polish.hash
fi
Package: wpolish
Architecture: all
Provides: wordlist
Description: Polish dictionary words for /usr/dict
This package provides the file /usr/share/dict/polish containing a list
of Polish words. This list can be used by spelling checkers, and by
programs such as look(1).
Install: sh
yada install -data tmp/polish.words -into /usr/share/dict -as polish
yada install -man -as polish.5 debian/wpolish.polish.5
Postinst: sh
if ! ( update-alternatives --display dictionary | grep /usr/share/dict/polish >/dev/null); then
update-alternatives --install /usr/share/dict/words dictionary /usr/share/dict/polish 50
fi
Prerm: sh
if [ "$1" != "upgrade" ]; then
update-alternatives --remove dictionary /usr/share/dict/polish
fi
|