Package Details: texlab-git 5.12.0.r0.b4c5d27-1

Git Clone URL: https://aur.archlinux.org/texlab-git.git (read-only, click to copy)
Package Base: texlab-git
Description: An implementation of the Language Server Protocol for LaTeX
Upstream URL: https://github.com/latex-lsp/texlab
Licenses: MIT
Conflicts: texlab
Provides: texlab
Submitter: he-la
Maintainer: ralphptorres
Last Packager: ralphptorres
Votes: 1
Popularity: 0.000139
First Submitted: 2019-05-03 13:56 (UTC)
Last Updated: 2023-12-04 18:04 (UTC)

Dependencies (2)

Required by (4)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

lucc commented on 2019-07-24 11:35 (UTC)

A new version has been released. Maybe you can update the PKGBUILD for the new rust version

https://github.com/latex-lsp/texlab/releases/tag/v1.2.0

I started to patch the PKGBUILD locally and came this far:

diff --git a/PKGBUILD b/PKGBUILD
index c77e2c6..c8ba6c9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@

 _pkgname=texlab
 pkgname=${_pkgname}-git
-pkgver=r254.0d1575f
+pkgver=r635.23f3228
 pkgrel=1
 pkgdesc="An implementation of the Language Server Protocol for LaTeX"
 arch=('any')
 url="https://github.com/latex-lsp/texlab"
 license=('MIT')
 depends=('java-runtime')
-makedepends=('git' 'gradle')
+makedepends=('git' 'rust' 'npm')
 source=('texlab-git::git+https://github.com/latex-lsp/texlab.git')
 md5sums=('SKIP')

@@ -20,23 +20,24 @@ pkgver() {

 build () {
    cd "$srcdir/${pkgname}"
-   chmod +x gradlew
-   ./gradlew build
+   pushd citeproc
+   npm install
+   npm run dist
+   popd
+   cargo build --release
 }

 package() {
    cd "$srcdir/${pkgname}"
    mkdir -p "${pkgdir}/usr/share/licenses/${_pkgname}"
-   mkdir -p "$pkgdir/usr/share/java/${_pkgname}"
+   mkdir -p "${pkgdir}/usr/bin"

-   cp LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
-   chmod 644 "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
-   cp "build/libs/texlab.jar" "$pkgdir/usr/share/java/${_pkgname}"
+   install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+   install -m 644 src/data/completion.json somewhere  # TODO
+   install target/release/texlab "${pkgdir}/usr/bin/"
+}

-   echo ""
-   echo "IMPORTANT:"
-   echo "The texlab.jar server has been installed under:"
-   echo "    /usr/share/java/${_pkgname}"
-   echo "Configure your editor plugin to point here!"
-   echo ""
+test () {
+   cd "$srcdir/${pkgname}"
+   cargo test --all
 }

But as you can see I could not figure out if and where to install the completion database.

wbthomason commented on 2019-07-02 16:18 (UTC)

Thanks!

he-la commented on 2019-07-02 16:03 (UTC)

Thanks. I will be updating ASAP.

wbthomason commented on 2019-07-02 15:33 (UTC)

texlab has officially switched the master branch over to the Rust rewrite of the server. An updated PKGBUILD should follow the instructions here: https://github.com/latex-lsp/texlab#building to build the new version; dependencies will include npm and cargo, while the Java dependencies can be removed.