From 035110c39d958eee00dfb3d3e029bbdecfc08072 Mon Sep 17 00:00:00 2001 From: Eugene Medvedev Date: Fri, 24 Mar 2017 03:17:39 +0300 Subject: [PATCH] New package: hunspell-ru (#846) Russian dictionary for Hunspell, a trivial copy-paste job based on hunspell-en-us. The package name is `hunspell-ru` because that's what the Ubuntu equivalent is named. --- packages/hunspell-ru/build.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/hunspell-ru/build.sh diff --git a/packages/hunspell-ru/build.sh b/packages/hunspell-ru/build.sh new file mode 100644 index 000000000..616b8cf5f --- /dev/null +++ b/packages/hunspell-ru/build.sh @@ -0,0 +1,20 @@ +TERMUX_PKG_HOMEPAGE=https://hunspell.github.io +TERMUX_PKG_DESCRIPTION="Russian dictionary for hunspell" +TERMUX_PKG_VERSION=2017.03.03 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_PLATFORM_INDEPENDENT=yes + +termux_step_make_install () { + mkdir -p $TERMUX_PREFIX/share/hunspell/ + # On checksum mismatch the files may have been updated: + # https://cgit.freedesktop.org/libreoffice/dictionaries/log/ru_RU/ru_RU.aff + # https://cgit.freedesktop.org/libreoffice/dictionaries/log/ru_RU/ru_RU.dic + # In which case we need to bump version and checksum used. + termux_download https://cgit.freedesktop.org/libreoffice/dictionaries/plain/ru_RU/ru_RU.aff \ + $TERMUX_PREFIX/share/hunspell/ru_RU.aff \ + 709cf9b41208961226e995a3ab75a2da834aaf4f9707cb87cbb37d4943b6a50d + termux_download https://cgit.freedesktop.org/libreoffice/dictionaries/plain/ru_RU/ru_RU.dic \ + $TERMUX_PREFIX/share/hunspell/ru_RU.dic \ + c0d81126b0a905ccc6fd891c923b43d39b4ce449da5a333859229354c510168f + touch $TERMUX_PREFIX/share/hunspell/ru_RU.{aff,dic} +}