Package Details: hunspell-la 2013.03.31-4

Git Clone URL: https://aur.archlinux.org/hunspell-la.git (read-only, click to copy)
Package Base: hunspell-la
Description: Latin hunspell dictionary
Upstream URL: https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries
Licenses: GPL
Submitter: Archadept
Maintainer: None
Last Packager: Lynuxed
Votes: 6
Popularity: 0.000002
First Submitted: 2011-08-26 18:03 (UTC)
Last Updated: 2023-01-27 00:06 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

Vitrum-cnkj34kr8 commented on 2023-07-11 03:45 (UTC) (edited on 2023-07-11 03:49 (UTC) by Vitrum-cnkj34kr8)

If you change numeration scheme

- pkgver = 20130331
+ pkgver = 2013.03.31

then you need to add epoch parameter. Otherwise, all existing users will never update to the future versions:

hunspell-la: local (20130331-3) is newer than AUR (2013.03.31-4)

Lynuxed commented on 2023-01-27 00:24 (UTC)

@rgarber11: Salve! Updated! This was a much needed update. Thanks for the info!

rgarber11 commented on 2021-01-28 09:59 (UTC) (edited on 2021-01-28 10:00 (UTC) by rgarber11)

Salvete omnes! The source location for this package has changed, meaning that the line must be updated to:

source=('https://extensions.libreoffice.org/assets/downloads/z/dict-la-2013-03-31.oxt')

Hope this helps someone out!

Archadept commented on 2018-04-14 14:12 (UTC)

Your corrections were included. Thank you.

Strictly speaking it is pulled out from the add-on plus all English dictionaries are using release date as version number, so it is a matter of what is considered more convenient.

Vitrum-cnkj34kr8 commented on 2018-04-13 19:12 (UTC) (edited on 2018-04-14 03:51 (UTC) by Vitrum-cnkj34kr8)

Strictly speaking:

20130331 is version of the LibreOffice add-on

3.1 is version of the Latin dictionary

Vitrum-cnkj34kr8 commented on 2018-04-13 18:52 (UTC) (edited on 2018-04-14 03:54 (UTC) by Vitrum-cnkj34kr8)

Below is my variant of the PKGBUILD:

#  Maintainer: Archadept
#    Revision: 2013-10-18

pkgname=hunspell-la
pkgver=20130331
pkgrel=2
pkgdesc='Latin dictionary for Hunspell'
arch=('any')
url="https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries"
license=('GPL')
optdepends=('hunspell:  the spell checking libraries and apps')
source=('https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries/2013.03.31/@@download/file/dict-la_2013-03-31.oxt')
md5sums=('46674c8e9985b97e3f71555ed83a90cd')

prepare() {
    # Hunspell ignores byte order mark (BOM sequence), see changelog of 2007-03-19:
    # https://github.com/hunspell/hunspell/blob/master/ChangeLog
    # However, some third-party applications can be affected. For example:
    # https://bugs.launchpad.net/ubuntu/+source/hunspell-ru/+bug/992194

    # So, BOM should be removed:
    LC_ALL=C sed -i '1s/^\xEF\xBB\xBF//' "${srcdir}/la/universal/la.dic"
    LC_ALL=C sed -i '1s/^\xEF\xBB\xBF//' "${srcdir}/la/universal/la.aff"
}

package() {
    cd "${srcdir}/la/universal"

    # Hunspell dictionary
    install -Dm644 la.dic ${pkgdir}/usr/share/hunspell/la_LA.dic
    install -Dm644 la.aff ${pkgdir}/usr/share/hunspell/la_LA.aff

    # MySpell symlinks
    install -dm755 ${pkgdir}/usr/share/myspell/dicts
    pushd ${pkgdir}/usr/share/myspell/dicts
    for file in ${pkgdir}/usr/share/hunspell/*; do
        ln -sv /usr/share/hunspell/$(basename ${file}) .
    done
    popd

    # Documentation
    install -Dm644 "${srcdir}/la/README_la.txt" "${pkgdir}/usr/share/doc/${pkgname}/README_la.txt"
}

Vitrum-cnkj34kr8 commented on 2018-04-06 13:22 (UTC) (edited on 2018-04-07 08:07 (UTC) by Vitrum-cnkj34kr8)

Files la.aff and la.dic are already encoded in UTF-8, no need to convert them. More over it breaks the mapping table in la.aff.

Universal spelling (subdir universal) combines classic and modern orthography, so can be considered to be more useful than default (at least for me).

Vitrum-cnkj34kr8 commented on 2018-02-11 20:43 (UTC) (edited on 2018-02-11 20:44 (UTC) by Vitrum-cnkj34kr8)

The new source path is needed:

source=('https://extensions.libreoffice.org/extensions/latin-spelling-and-hyphenation-dictionaries/2013.03.31/@@download/file/dict-la_2013-03-31.oxt')

Everything else is working correct.