diff options
author | Jaja | 2019-03-10 22:40:15 +0100 |
---|---|---|
committer | Jaja | 2019-03-10 22:40:15 +0100 |
commit | 08dbcefef69780727bbd6ad1999035b8335f2ad4 (patch) | |
tree | f481c6f0a2c59ce3f410003247d580177375782f | |
download | aur-08dbcefef69780727bbd6ad1999035b8335f2ad4.tar.gz |
Initial Release
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | languagetool-ngrams-nl.install | 5 |
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2d7c816442f1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = languagetool-ngrams-nl + pkgdesc = Finding errors using n-gram data, dutch text + pkgver = 20181229 + pkgrel = 1 + url = http://wiki.languagetool.org/finding-errors-using-n-gram-data + install = languagetool-ngrams-nl.install + arch = any + license = CCPL + makedepends = unzip + optdepends = languagetool: system wide installation of LT + optdepends = libreoffice-extension-languagetool: standalone LT for LibreOffice + optdepends = openoffice-extension-languagetool: standalone LT for OpenOffice + noextract = languagetool-ngrams-nl-20181229.zip + options = !strip + source = languagetool-ngrams-nl-20181229.zip::https://languagetool.org/download/ngram-data/ngrams-nl-20181229.zip + md5sums = e94012c08b4c960f36e090dc29646ef7 + +pkgname = languagetool-ngrams-nl + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f3ede90efddb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Jaja <jaja@mailbox.org> +# + +pkgname=languagetool-ngrams-nl +pkgver=20181229 +pkgrel=1 +pkgdesc="Finding errors using n-gram data, dutch text" +arch=('any') +url="http://wiki.languagetool.org/finding-errors-using-n-gram-data" +license=('CCPL') +optdepends=('languagetool: system wide installation of LT' +'libreoffice-extension-languagetool: standalone LT for LibreOffice' +'openoffice-extension-languagetool: standalone LT for OpenOffice') +makedepends=('unzip') +install=${pkgname}.install +source=(${pkgname}-${pkgver}.zip::"https://languagetool.org/download/ngram-data/ngrams-nl-${pkgver}.zip") +noextract=(${pkgname}-${pkgver}.zip) +md5sums=('e94012c08b4c960f36e090dc29646ef7') +PKGEXT='.pkg.tar' +options=(!strip) + +prepare() { + echo '' + echo 'Warning:' + echo '· This package requires about 2.4G to be available within /usr/share.' + echo '· Make sure you have a _fast_ disk serving /usr/share, i.e. an SSD. Without an SSD, using this data can make LanguageTool much slower.' + echo '· Because of size, you may run out of RAM if you use tmpfs aware aur helpers.' + echo '' +} + +package() { + install -d "${pkgdir}"/usr/share/ngrams + unzip -q "${srcdir}"/${pkgname}-${pkgver}.zip -d "${pkgdir}"/usr/share/ngrams +} diff --git a/languagetool-ngrams-nl.install b/languagetool-ngrams-nl.install new file mode 100644 index 000000000000..1840d39d81d0 --- /dev/null +++ b/languagetool-ngrams-nl.install @@ -0,0 +1,5 @@ +post_install() { + echo '' + echo 'Do not forget to add "ngramDir=/usr/share/ngrams" in ~/.languagetool[-ooo].cfg or use LanguageTool GUI config to point to "/usr/share/ngrams"!' + echo '' +} |