summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 002875d64f59f8ad4b503ce8e0e7866f5ad2cc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: darkelectron <darkelectron(at)mailfence.com>
# Maintainer: Allddd <allddd (at) proton (dot) me>

_path='3710/1713168009'
pkgname=libreoffice-extension-languagetool
pkgver=6.4
_filename="LanguageTool-${pkgver}.oxt"
pkgrel=1
pkgdesc='An Open Source style and grammar checker (more than 30 languages)'
arch=('any')
url='https://languagetool.org'
license=('LGPL')
groups=('libreoffice-extensions')
depends=('libreoffice' 'java-runtime>=8')
source=("${_filename}::https://extensions.libreoffice.org/assets/downloads/${_path}/${_filename}")
noextract=("${_filename}")
sha256sums=('0f1f39ff2438d322f15962f1d30a5c293bb121a7f709c7bbdc1099636b91625e')

package() {
    local _dest="${pkgdir}/usr/lib/libreoffice/share/extensions/languagetool/"
    install -dm755 "${_dest}"
    bsdtar -xf "${_filename}" -C "${_dest}"
    find "${_dest}" \( -type d -exec chmod 755 {} \; \) -o \( -type f -exec chmod 644 {} \; \)
}

# vim: ts=4 sw=4 et: