summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1fbe8b82e31e0f0398131b148c09199fa2defcdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: bbyte <bbyte@mailbox.org>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>

pkgname=languagetool-snapshot
_pkgname="${pkgname%-snapshot}"
_date=20240218
_revision=6.4
pkgver=$_revision.$_date
pkgrel=1
pkgdesc='Style and Grammar Checker for 25+ Languages (daily snapshot)'
arch=(any)
url='https://www.languagetool.org'
license=(LGPL)
depends=(java-runtime-headless)
optdepends=('java-runtime: needed for the GUI version'
            'libxtst: needed for the GUI version'
            'gtk3: GTK style for the GUI')
provides=("${pkgname%-snapshot}")
conflicts=("${pkgname%-snapshot}")
source=(https://www.languagetool.org/download/snapshots/LanguageTool-"$_date"-snapshot.zip
        https://gitlab.archlinux.org/archlinux/packaging/packages/languagetool/-/raw/2079fd41/languagetool.service
        https://gitlab.archlinux.org/archlinux/packaging/packages/languagetool/-/raw/2079fd41/languagetool.sh)
sha256sums=('68f49ade4132b3442e176e78c9151fefa0c220d7be1cd7b37e577e77dbe584fe'
            '628e59208af02dd41c678135ef6dd8b328905701301d8257316b388d36d6c52b'
            'e395fe51eb107365bb6e5456a2e1a144a60296e52554b8407f241e195e434359')

package() {
  install -d "$pkgdir"/usr/share/java/"$_pkgname"

  cd "$srcdir"
  mv LanguageTool-$_revision-SNAPSHOT "$pkgdir"/usr/share/"$_pkgname"
  install -D -m755 "$_pkgname".sh "$pkgdir"/usr/bin/"$_pkgname"
  install -D -m644 "$_pkgname".service "$pkgdir"/usr/lib/systemd/system/"$_pkgname".service

  cd "$pkgdir"/usr/share/"$_pkgname"
  mv languagetool{,-server,-commandline}.jar libs/ "$pkgdir"/usr/share/java/"$_pkgname"
}