| 1 | TERMUX_PKG_HOMEPAGE=https://hunspell.github.io |
| 2 | TERMUX_PKG_DESCRIPTION="Russian dictionary for hunspell" |
| 3 | TERMUX_PKG_VERSION=2017.03.03 |
| 4 | TERMUX_PKG_PLATFORM_INDEPENDENT=yes |
| 5 | |
| 6 | termux_step_make_install () { |
| 7 | mkdir -p $TERMUX_PREFIX/share/hunspell/ |
| 8 | # On checksum mismatch the files may have been updated: |
| 9 | # https://cgit.freedesktop.org/libreoffice/dictionaries/log/ru_RU/ru_RU.aff |
| 10 | # https://cgit.freedesktop.org/libreoffice/dictionaries/log/ru_RU/ru_RU.dic |
| 11 | # In which case we need to bump version and checksum used. |
| 12 | termux_download https://cgit.freedesktop.org/libreoffice/dictionaries/plain/ru_RU/ru_RU.aff \ |
| 13 | $TERMUX_PREFIX/share/hunspell/ru_RU.aff \ |
| 14 | 709cf9b41208961226e995a3ab75a2da834aaf4f9707cb87cbb37d4943b6a50d |
| 15 | termux_download https://cgit.freedesktop.org/libreoffice/dictionaries/plain/ru_RU/ru_RU.dic \ |
| 16 | $TERMUX_PREFIX/share/hunspell/ru_RU.dic \ |
| 17 | c0d81126b0a905ccc6fd891c923b43d39b4ce449da5a333859229354c510168f |
| 18 | touch $TERMUX_PREFIX/share/hunspell/ru_RU.{aff,dic} |
| 19 | } |