# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           hunspelldict 1.0

hunspelldict.setup  sv_SE 2.43 {Swedish (Sweden)} ooo
maintainers         nomaintainer
homepage            https://sfol.se/
license             LGPL-3

set extension.url   https://extensions.libreoffice.org/extensions/swedish-spelling-dictionary-den-stora-svenska-ordlistan

master_sites        ${extension.url}/${version}/@@download/file/
checksums           rmd160  e064269eed238c15308fd5e1e0d366463e83f559 \
                    sha256  2e8b3e1faee1158ff2d5e242b9029b9f9e148387bd6dccd852fbf9bb2c3fa706 \
                    size    1470138

post-extract {
    # portgroup expects dictionaries to be in the work dir
    move {*}[glob ${worksrcpath}/dictionaries/*] ${worksrcpath}
}

livecheck.url       ${extension.url}
livecheck.regex     ${extension.url}/(\\d+\\.\\d+)/
