termux-packages/packages/hunspell-en-us/build.sh
Leonid Pliushch 7cde58f9a6 hunspell-en-us: change versioning scheme
Do not use dots when using date as version.
2019-05-21 14:12:49 +03:00

21 lines
1010 B
Bash

TERMUX_PKG_HOMEPAGE=https://hunspell.github.io
TERMUX_PKG_DESCRIPTION="American english dictionary for hunspell"
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_VERSION=20181025
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/en/en_US.aff
# https://cgit.freedesktop.org/libreoffice/dictionaries/log/en/en_US.dic
# In which case we need to bump version and checksum used.
termux_download https://cgit.freedesktop.org/libreoffice/dictionaries/plain/en/en_US.aff \
$TERMUX_PREFIX/share/hunspell/en_US.aff \
c7a8c4d08c29d237880844b1623099f59092602f189be38ce3912e457ff38bc1
termux_download https://cgit.freedesktop.org/libreoffice/dictionaries/plain/en/en_US.dic \
$TERMUX_PREFIX/share/hunspell/en_US.dic \
9eb52cdeab6c87a4988df7d2845caaa39cd9bdc93b45bc2e3c228f8070807767
touch $TERMUX_PREFIX/share/hunspell/en_US.{aff,dic}
}