office/hunspell-id: Fix download URL, merge with hyphen-id.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-17 13:42:45 -05:00 committed by Willy Sudiarto Raharjo
parent 6f1ef492d3
commit c5d93a426c
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 13 additions and 9 deletions

View file

@ -1 +1 @@
Indonesian hunspell dictionary.
Indonesian hunspell dictionary and hyphenation data.

View file

@ -24,18 +24,20 @@
# Based on the Arch PKGBUILD
# 20220217 bkw: Modified by SlackBuilds.org, BUILD=2:
# - fix download URL.
# - merge hyphen-id with this build. they install files from the same
# source archive, there's no reason to have separate builds.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=hunspell-id
VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH="noarch"
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -55,11 +57,12 @@ rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
bsdtar -xf $CWD/id_id.oxt
unzip $CWD/id-id.oxt '*.dic' info/long-description.txt
# Putting everything in proper place
install -dm755 $PKG/usr/share/hunspell
mkdir -p $PKG/usr/share/{hunspell,hyphen}
install -m644 id_ID.* $PKG/usr/share/hunspell
install -m644 hyph_id_ID.dic $PKG/usr/share/hyphen
# myspell symlinks
install -dm755 $PKG/usr/share/myspell/dicts
@ -68,6 +71,7 @@ pushd $PKG/usr/share/myspell/dicts
ln -sv ../../hunspell/$(basename $file) .
done
popd
ln -s ../../hyphen/hyph_id_ID.dic $PKG/usr/share/myspell/dicts
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m644 info/long-description.txt $PKG/usr/doc/$PRGNAM-$VERSION/README.txt

View file

@ -1,7 +1,7 @@
PRGNAM="hunspell-id"
VERSION="2.0"
HOMEPAGE="https://extensions.libreoffice.org/extensions/indonesian-dictionary-kamus-indonesia-by-benitius"
DOWNLOAD="https://extensions.libreoffice.org/extensions/indonesian-dictionary-kamus-indonesia-by-benitius/2.0/@@download/file/id_id.oxt"
DOWNLOAD="https://extensions.libreoffice.org/assets/downloads/z/id-id.oxt"
MD5SUM="e5c97ae82ba6c191f432f45ec7a5783e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

View file

@ -8,7 +8,7 @@
|-----handy-ruler------------------------------------------------------|
hunspell-id: hunspell-id (Indonesian hunspell dictionary)
hunspell-id:
hunspell-id: Indonesian hunspell dictionary
hunspell-id: Indonesian hunspell dictionary and hyphenation data.
hunspell-id:
hunspell-id:
hunspell-id: