1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
3 # Contributor: Julien MISCHKOWITZ <wain@archlinux.fr>
4 # Contributor: Panagiotis Papadopoulos pano_90 (AT) gmx (DOT) net
9 pkgdesc='An open source language checker'
11 url='https://www.languagetool.org'
13 depends=(java-runtime-headless)
15 optdepends=('java-runtime: needed for the GUI version'
16 'libxtst: needed for the GUI version'
17 'gtk3: GTK style for the GUI')
18 source=(https://www.languagetool.org/download/LanguageTool-${pkgver}.zip
21 noextract=($pkgname-$pkgver.zip)
22 sha256sums=('ea4d8bb3a92d109e63ab6d0ef6a1ef1b5b73f4dd16cdd7b2a7a02a0e74c7651d'
23 'e395fe51eb107365bb6e5456a2e1a144a60296e52554b8407f241e195e434359'
24 '628e59208af02dd41c678135ef6dd8b328905701301d8257316b388d36d6c52b')
27 install -d "$pkgdir"/usr/{bin,share/java/$pkgname/libs}
28 unzip -q LanguageTool-$pkgver.zip -d "$pkgdir"/usr/share
29 cd "$pkgdir"/usr/share/
30 mv LanguageTool-$pkgver $pkgname
32 mv *.jar "$pkgdir"/usr/share/java/$pkgname
33 mv libs/*.jar "$pkgdir"/usr/share/java/$pkgname/libs
35 install -m755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
36 mkdir -p "$pkgdir"/usr/lib/systemd/system
37 install -m644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service