summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaja832016-04-27 10:24:41 +0200
committerLukas Fleischer2016-04-27 10:24:41 +0200
commit2be1c9a39923c707cc91cc3b216d9fec1293ca29 (patch)
tree799745b43f2991654262d0ac3c1f5785ca8447b5
downloadaur-2be1c9a39923c707cc91cc3b216d9fec1293ca29.tar.gz
Initial Release
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
-rw-r--r--languagetool-ngrams-it.install5
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..7309785648af
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = languagetool-ngrams-it
+ pkgdesc = Finding errors using n-gram data, italian text
+ pkgver = 20150915
+ pkgrel = 1
+ url = http://wiki.languagetool.org/finding-errors-using-n-gram-data
+ install = languagetool-ngrams-it.install
+ arch = any
+ license = LGPL
+ 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-it-20150915.zip
+ source = languagetool-ngrams-it-20150915.zip::http://languagetool.org/download/ngram-data/untested/ngram-it-20150915.zip
+ md5sums = SKIP
+
+pkgname = languagetool-ngrams-it
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..40186c17c7bc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Jaja83 <arch_me@keemail.me>
+#
+
+pkgname=languagetool-ngrams-it
+pkgver=20150915
+pkgrel=1
+pkgdesc="Finding errors using n-gram data, italian text"
+arch=('any')
+url="http://wiki.languagetool.org/finding-errors-using-n-gram-data"
+license=('LGPL')
+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::"http://languagetool.org/download/ngram-data/untested/ngram-it-${pkgver}.zip")
+noextract=(${pkgname}-${pkgver}.zip)
+md5sums=('SKIP')
+
+prepare() {
+ echo ''
+ echo 'Warning:'
+ echo '· Footage is about 3G in size!'
+ 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 this honorable size, compressing this package literally take hours. Make sure to disable compression entirely – at least make use of xz SMP feature. See makepkg wiki page for details …'
+ echo '· Also because of size, you may run out of memory if you use tmpfs aware aur helpers. You are better of not using tmpfs for this one and manually install this Package with "makepkg -s; sudo pacman -U languagetool-ngrams-*" on a spinning-disk based dir.'
+ echo ''
+}
+
+package() {
+ install -d "${pkgdir}"/usr/share/ngrams
+ unzip -q "${srcdir}"/${pkgname}-${pkgver}.zip -d "${pkgdir}"/usr/share/ngrams
+}
diff --git a/languagetool-ngrams-it.install b/languagetool-ngrams-it.install
new file mode 100644
index 000000000000..1840d39d81d0
--- /dev/null
+++ b/languagetool-ngrams-it.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 ''
+}