mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
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:
parent
6f1ef492d3
commit
c5d93a426c
4 changed files with 13 additions and 9 deletions
|
@ -1 +1 @@
|
|||
Indonesian hunspell dictionary.
|
||||
Indonesian hunspell dictionary and hyphenation data.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue