upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / languagetool / trunk / PKGBUILD
blob55a1696a96a0ac9e5698007ec0b7e87839dc3c06
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
6 pkgname=languagetool
7 pkgver=6.1
8 pkgrel=3
9 pkgdesc='An open source language checker'
10 arch=(any)
11 url='https://www.languagetool.org'
12 license=(LGPL)
13 depends=(java-runtime-headless)
14 makedepends=(unzip)
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
19         languagetool.sh
20         languagetool.service)
21 noextract=($pkgname-$pkgver.zip)
22 sha256sums=('ea4d8bb3a92d109e63ab6d0ef6a1ef1b5b73f4dd16cdd7b2a7a02a0e74c7651d'
23             'e395fe51eb107365bb6e5456a2e1a144a60296e52554b8407f241e195e434359'
24             '628e59208af02dd41c678135ef6dd8b328905701301d8257316b388d36d6c52b')
26 package() {
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
31   cd $pkgname
32   mv *.jar "$pkgdir"/usr/share/java/$pkgname
33   mv libs/*.jar "$pkgdir"/usr/share/java/$pkgname/libs
34   rm -rf 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