summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a293ac372b72e0b0a58eb07c7bd7b47e0c88991d (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
# Maintainer: Canony <canony@protonmail.ch>

pkgname=ltex-ls-bin
pkgver=14.1.0
pkgrel=1
pkgdesc="LTeX Language Server: LSP language server for LanguageTool with support for LaTeX, Markdown, and others "
_filename="${pkgname%-bin}-${pkgver}"
arch=('x86_64')
url="https://github.com/valentjn/${pkgname%-bin}"
license=('Mozilla Public License 2.0')
depends=('java-runtime-headless')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
source=("$url/releases/download/$pkgver/${_filename}.tar.gz")
sha256sums=('6efe3ddd23169ed66ee291974e29a94ec0041549d78b69b64cebbbd334e1f92e')

package() {
    echo "Copying executable files to /opt/${pkgname%-bin}"
    mkdir -p "$pkgdir"/opt/${pkgname%-bin}/{bin,lib}
    install -Dm755 "${_filename}/bin/${pkgname%-bin}" "$pkgdir/opt/${pkgname%-bin}/bin/"
    cp -r "${_filename}/lib/" "$pkgdir/opt/${pkgname%-bin}/"

    echo "Making symlink for executables"
    mkdir -p "$pkgdir/usr/bin"
    ln -s "/opt/${pkgname%-bin}/bin/${pkgname%-bin}" "$pkgdir/usr/bin/${pkgname%-bin}"

    echo "Copying misc. files"
    install -Dm644 "${_filename}/LICENSE.md" "$pkgdir/opt/${pkgname%-bin}/share/licenses/${pkgname%-bin}/LICENSE.md"
    install -Dm644 "${_filename}/ACKNOWLEDGMENTS.md" "$pkgdir/opt/${pkgname%-bin}/share/licenses/${pkgname%-bin}/ACKNOWLEDGMENTS.md"
}

# vim:set ts=4 sw=4 et: