diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-17 13:42:45 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-19 12:09:25 +0700 |
commit | c5d93a426ca3d643af51ac4dcd1319890728ec41 (patch) | |
tree | 151fd2039dfef50ad204812b8e4afb4bbfa4dd14 /office/hunspell-id | |
parent | 6f1ef492d388626295a307e1ba3eed018c766789 (diff) |
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>
Diffstat (limited to 'office/hunspell-id')
-rw-r--r-- | office/hunspell-id/README | 2 | ||||
-rw-r--r-- | office/hunspell-id/hunspell-id.SlackBuild | 16 | ||||
-rw-r--r-- | office/hunspell-id/hunspell-id.info | 2 | ||||
-rw-r--r-- | office/hunspell-id/slack-desc | 2 |
4 files changed, 13 insertions, 9 deletions
diff --git a/office/hunspell-id/README b/office/hunspell-id/README index 2bec7188ec71..8619f263e927 100644 --- a/office/hunspell-id/README +++ b/office/hunspell-id/README @@ -1 +1 @@ -Indonesian hunspell dictionary. +Indonesian hunspell dictionary and hyphenation data. diff --git a/office/hunspell-id/hunspell-id.SlackBuild b/office/hunspell-id/hunspell-id.SlackBuild index e27b4a42cb5b..fbd5d99ff4c2 100644 --- a/office/hunspell-id/hunspell-id.SlackBuild +++ b/office/hunspell-id/hunspell-id.SlackBuild @@ -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 diff --git a/office/hunspell-id/hunspell-id.info b/office/hunspell-id/hunspell-id.info index b9620924d038..d1275129c746 100644 --- a/office/hunspell-id/hunspell-id.info +++ b/office/hunspell-id/hunspell-id.info @@ -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="" diff --git a/office/hunspell-id/slack-desc b/office/hunspell-id/slack-desc index 9400a4b55083..44fbe02c0231 100644 --- a/office/hunspell-id/slack-desc +++ b/office/hunspell-id/slack-desc @@ -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: |