From 369b96c1da3137d2ae200fbc65310877aed011b1 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 22 Jul 2015 14:25:58 +0700 Subject: [PATCH] office/LanguageTool: Added (style and grammar checker). Signed-off-by: Willy Sudiarto Raharjo --- office/LanguageTool/LanguageTool.SlackBuild | 82 ++++++++++++++++++++ office/LanguageTool/LanguageTool.desktop | 9 +++ office/LanguageTool/LanguageTool.info | 10 +++ office/LanguageTool/LanguageTool.png | Bin 0 -> 7227 bytes office/LanguageTool/README | 2 + office/LanguageTool/doinst.sh | 3 + office/LanguageTool/languagetool-cli.sh | 4 + office/LanguageTool/languagetool-gui.sh | 4 + office/LanguageTool/languagetool-srv.sh | 4 + office/LanguageTool/slack-desc | 19 +++++ 10 files changed, 137 insertions(+) create mode 100644 office/LanguageTool/LanguageTool.SlackBuild create mode 100644 office/LanguageTool/LanguageTool.desktop create mode 100644 office/LanguageTool/LanguageTool.info create mode 100644 office/LanguageTool/LanguageTool.png create mode 100644 office/LanguageTool/README create mode 100644 office/LanguageTool/doinst.sh create mode 100644 office/LanguageTool/languagetool-cli.sh create mode 100644 office/LanguageTool/languagetool-gui.sh create mode 100644 office/LanguageTool/languagetool-srv.sh create mode 100644 office/LanguageTool/slack-desc diff --git a/office/LanguageTool/LanguageTool.SlackBuild b/office/LanguageTool/LanguageTool.SlackBuild new file mode 100644 index 0000000000..b7c9a6be51 --- /dev/null +++ b/office/LanguageTool/LanguageTool.SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh + +# Slackware build script for LanguageTool + +# Copyright 2015 Dimitris Zlatanidis Orestiada, Greece +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=LanguageTool +VERSION=${VERSION:-3.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +unzip $CWD/$PRGNAM-$VERSION.zip +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p $PKG/usr/bin $PKG/usr/share/$PRGNAM/libs +# copy data +cp -f libs/*.jar $PKG/usr/share/$PRGNAM/libs +cp -rf META-INF org $PKG/usr/share/$PRGNAM +# install launchers +install -D -m0644 *.jar $PKG/usr/share/$PRGNAM +install -D -m0755 $CWD/${PRGNAM,,}-cli.sh $PKG/usr/bin/${PRGNAM,,}-cli +install -D -m0755 $CWD/${PRGNAM,,}-srv.sh $PKG/usr/bin/${PRGNAM,,}-srv +install -D -m0755 $CWD/${PRGNAM,,}-gui.sh $PKG/usr/bin/${PRGNAM,,}-gui + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# install .desktop +mkdir -p $PKG/usr/share/applications +install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop + +# install icon +mkdir -p $PKG/usr/share/pixmaps/ +install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md CHANGES* COPYING.txt $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/office/LanguageTool/LanguageTool.desktop b/office/LanguageTool/LanguageTool.desktop new file mode 100644 index 0000000000..e442758443 --- /dev/null +++ b/office/LanguageTool/LanguageTool.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name= LanguageTool +Comment= An open source language checker +Exec=languagetool-gui +Icon=LanguageTool +Terminal=false +Type=Application +Categories=Office;Tool; +GenericName=Office diff --git a/office/LanguageTool/LanguageTool.info b/office/LanguageTool/LanguageTool.info new file mode 100644 index 0000000000..eaa68f0318 --- /dev/null +++ b/office/LanguageTool/LanguageTool.info @@ -0,0 +1,10 @@ +PRGNAM="LanguageTool" +VERSION="3.0" +HOMEPAGE="https://www.languagetool.org/" +DOWNLOAD="https://www.languagetool.org/download/LanguageTool-3.0.zip" +MD5SUM="931c9852dde0e14adcc5b22f3c311131" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="jdk" +MAINTAINER="Dimitris Zlatanidis" +EMAIL="d.zlatanidis@gmail.com" diff --git a/office/LanguageTool/LanguageTool.png b/office/LanguageTool/LanguageTool.png new file mode 100644 index 0000000000000000000000000000000000000000..43312824bcc360fc1f3bbc92f6d118c62896ec16 GIT binary patch literal 7227 zcmX9@bzD@>*G7<%1xZ@3Jp(9esdOnROV7stf_y@9Hg+<$e37pvVTyk?SsBV+BAC}%6M*# zjb*iX9^Q5SiP}VEo!)ew-gcf|S~x6-<6{j1u|hmyYwoIG^n1kcgX}|AYBWS(-uKGC zq;vKskK8NS&M~~M50epV{O%k;#jv9do4uA+S0r}SqNZ^*r+0OcYy_?gpLj$*O@<(&#fi}5FHdjuwkk{?I zUcqSj8%9=E_V6?H6V?3Pd+UR#rRSgLFQkFDEUy2E2o+cnBlN==+3mN&hHS9sG2!lD=Ce{%zX# zCs`a&brwNJoc}hO%5`Bd6bD}r3SB*=(M;lERtP3u^FvkTqrE7N-OaNWW4ml5_6qKQ8o{7e-e8vOe8>r40G8#7rcsZw6R z{MWDCf@yyc{^(ra%P?FbuwBCQpdoGc)HNQX@>NGv4xs@945Z{cafayyBtIkHe)8&j zIM!;q{jr$yFF!b=C9&B*O+@N@)K!*<<7K=5X>l^`we;D9;)f3(%-dvd9Y~gZ`BKZ2 zZNkc$H*y&6wpIOZ{x-?bn0Qf>dW9+Ze*U*NyYX+<3enx0RBqP9kC66WNOOCCXoybd zt#Q#;=CD?`_2(}J0065OT@OLqY;SXki*C_qRBm4sF>SFS?WeUh8!vBfrzW1IfYePi zY&J!PpmnjVZo^^>UhBFbzA__ham}3Tg-m2X_Jre?7}BQ81fElxXA^s(RnT`t?Is5$ zh34bLL6>XMV4wZWS}a3-R~_op%i|5O_bz3_+rG)ArH{wQ$K91_rCN8pko;_$i4Ah6 zT^Af29I*chtHb!03PTfJ@594Ggkqe~kSaqEWu_Hxmsa>-1`Q}qM=ox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}SIZF2*l2L3kn$je_z3Nt^S`!kHu zlGwz=B=U-WfU4RP+JZ$V7qe}!AmcfeiVB!l z;PqAn8A*OY%trgYIJ9AM6eVhlIVfWR1pQCJkrjp_2o)WNrHLb)H^X!>s!#Va%-h9N zyQyesWW8HZIZ6e14J_$M)lx{oi~Xl!law6^D>G;R$88T-V)N-03{QTy4%YX7eC(w0 zsLzXrB5Hj}@BU-2dXD_d6e^9T$*GCv4Z5XQ^O=uT^t=^-lm$29=LNAN1S}T7X^d1$ zA(>QrIijqmN~fxjQc6Oep=~T5Z%4_KCZwXwcbbx<15i*<07XO;3<JY@9o;a/dev/null 2>&1 +fi diff --git a/office/LanguageTool/languagetool-cli.sh b/office/LanguageTool/languagetool-cli.sh new file mode 100644 index 0000000000..4d3d0b839b --- /dev/null +++ b/office/LanguageTool/languagetool-cli.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/LanguageTool/ +java -jar languagetool-commandline.jar diff --git a/office/LanguageTool/languagetool-gui.sh b/office/LanguageTool/languagetool-gui.sh new file mode 100644 index 0000000000..c511c43216 --- /dev/null +++ b/office/LanguageTool/languagetool-gui.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/LanguageTool/ +java -jar languagetool.jar diff --git a/office/LanguageTool/languagetool-srv.sh b/office/LanguageTool/languagetool-srv.sh new file mode 100644 index 0000000000..cc6469f32f --- /dev/null +++ b/office/LanguageTool/languagetool-srv.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/LanguageTool/ +java -jar languagetool-server.jar diff --git a/office/LanguageTool/slack-desc b/office/LanguageTool/slack-desc new file mode 100644 index 0000000000..1a1367176e --- /dev/null +++ b/office/LanguageTool/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +LanguageTool: LanguageTool (style and grammar checker) +LanguageTool: +LanguageTool: LanguageTool is an Open Source proof­reading program for English, +LanguageTool: French, German, Polish, and more than 20 other languages. +LanguageTool: +LanguageTool: Homepage: https://www.languagetool.org/ +LanguageTool: +LanguageTool: +LanguageTool: +LanguageTool: +LanguageTool: