[arch-commits] Commit in languagetool/trunk (PKGBUILD languagetool.service)

Andrzej Giniewicz aginiewicz at archlinux.org
Thu Oct 3 18:03:48 UTC 2019


    Date: Thursday, October 3, 2019 @ 18:03:47
  Author: aginiewicz
Revision: 512516

upgpkg: languagetool 4.7-1

languagetool: new upstream release, systemd service file

Added:
  languagetool/trunk/languagetool.service
Modified:
  languagetool/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   11 +++++++----
 languagetool.service |   14 ++++++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-03 17:46:19 UTC (rev 512515)
+++ PKGBUILD	2019-10-03 18:03:47 UTC (rev 512516)
@@ -3,7 +3,7 @@
 # Contributor: Panagiotis Papadopoulos pano_90 (AT) gmx (DOT) net
 
 pkgname=languagetool
-pkgver=4.6
+pkgver=4.7
 pkgrel=1
 pkgdesc="An open source language checker"
 arch=('any')
@@ -14,10 +14,11 @@
 optdepends=('java-runtime: needed for the GUI version'
             'libxtst: needed for the GUI version'
             'gtk2: needed for the GUI version')
-source=("https://www.languagetool.org/download/LanguageTool-${pkgver}.zip" "$pkgname.sh")
+source=("https://www.languagetool.org/download/LanguageTool-${pkgver}.zip" "$pkgname.sh" "$pkgname.service")
 noextract=($pkgname-$pkgver.zip)
-sha256sums=('5fd82f2cae2254c682e603a8969a2af292c72c576b2db52dd680f0ec06abce3d'
-            '009c0a65a978ad11ac097edd4be64688a2c80281b201495eff9ab667c5b0f0fe')
+sha256sums=('4f00f71930871600cb8fe53a8c4d4c9c60f05711c979fd313be1c6c674efde3c'
+            '009c0a65a978ad11ac097edd4be64688a2c80281b201495eff9ab667c5b0f0fe'
+            'c1bc7bc6336cbd988fb2e54610693886a20bc4bff48b499617ff4f6fc5b09052')
 
 package() {
   cd "$srcdir"
@@ -30,4 +31,6 @@
   mv libs/*.jar "$pkgdir"/usr/share/java/$pkgname
   rm -rf libs
   install -m755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
+  mkdir -p "$pkgdir"/usr/lib/systemd/system
+  install -m644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
 }

Added: languagetool.service
===================================================================
--- languagetool.service	                        (rev 0)
+++ languagetool.service	2019-10-03 18:03:47 UTC (rev 512516)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Languagetool HTTP server
+
+[Service]
+Type=simple
+PIDFile=/run/language-tool.pid
+User=nobody
+Restart=always
+ExecStart=/usr/bin/languagetool --http --allow-origin "*"
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=/bin/kill -QUIT $MAINPID
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list