Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
bash-language-server


Commits:
3ba9a123 by Daniel M. Capella at 2023-12-27T15:35:47-05:00
upgpkg: 5.1.1-1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,19 @@
+pkgbase = bash-language-server
+       pkgdesc = Bash language server implementation based on Tree Sitter and 
its grammar for Bash
+       pkgver = 5.1.1
+       pkgrel = 1
+       url = https://github.com/bash-lsp/bash-language-server
+       arch = any
+       license = MIT
+       makedepends = git
+       makedepends = npm
+       makedepends = pnpm
+       depends = nodejs
+       optdepends = bash-completion: for CLI args completion
+       optdepends = man-db: for documentation via manual pages
+       optdepends = shellcheck: to enable linting
+       options = !emptydirs
+       source = 
git+https://github.com/bash-lsp/bash-language-server.git#tag=server-5.1.1
+       b2sums = SKIP
+
+pkgname = bash-language-server


=====================================
PKGBUILD
=====================================
@@ -3,41 +3,43 @@
 # Maintainer: Daniel M. Capella <poly...@archlinux.org>
 
 pkgname=bash-language-server
-pkgver=5.0.0
-pkgrel=2
-pkgdesc="Bash language server implementation based on Tree Sitter and its 
grammar for Bash"
-arch=("any")
-url="https://github.com/bash-lsp/bash-language-server";
-license=("MIT")
-depends=("nodejs")
-makedepends=("git" "npm" "pnpm")
-optdepends=('bash-completion: for CLI args completion'
-            'man-db: for documentation via manual pages'
-            'shellcheck: to enable linting')
+pkgver=5.1.1
+pkgrel=1
+pkgdesc='Bash language server implementation based on Tree Sitter and its 
grammar for Bash'
+arch=('any')
+url=https://github.com/bash-lsp/bash-language-server
+license=('MIT')
+depends=('nodejs')
+makedepends=('git' 'npm' 'pnpm')
+optdepends=(
+  'bash-completion: for CLI args completion'
+  'man-db: for documentation via manual pages'
+  'shellcheck: to enable linting'
+)
 options=('!emptydirs')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/server-$pkgver.tar.gz")
-b2sums=('53c73a7dfd49d38699b054916e429100603793028a369dbcc6161e20af02facc5b56e100d06a92d0f59f09fe3a36b3cb2b3c4a387d35a262d481823f56a6f8fb')
+source=("git+$url.git#tag=server-$pkgver")
+b2sums=('SKIP')
 
 build() {
-    cd "$pkgname-server-$pkgver"
-    pnpm install --frozen-lockfile
-    pnpm run compile
+  cd $pkgname
+  pnpm install --frozen-lockfile
+  pnpm run compile
 }
 
 package() {
-    local _npmdir="/usr/lib/node_modules/$pkgname"
-    install -d "$pkgdir"/{usr/bin,"$_npmdir"}
-    ln -s "$_npmdir/out/cli.js" "$pkgdir/usr/bin/$pkgname"
+  local mod_dir=/usr/lib/node_modules/$pkgname
+  install -d "$pkgdir"/{usr/bin,$mod_dir}
+  ln -s $mod_dir/out/cli.js "$pkgdir"/usr/bin/$pkgname
 
-    cd "$pkgname-server-$pkgver"
-    install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+  cd $pkgname
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
 
-    cd server
-    # Prune unnecessary packages
-    rm -r node_modules
-    npm install --production
+  cd server
+  # Prune unnecessary packages
+  rm -r node_modules
+  npm install --production
 
-    cp -r node_modules out package.json tree-sitter-bash.wasm 
"$pkgdir/$_npmdir"
-    chmod +x "$pkgdir/$_npmdir/out/cli.js"
-    install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" ./*.md
+  cp -r node_modules out package.json tree-sitter-bash.wasm "$pkgdir"/$mod_dir
+  chmod +x "$pkgdir"/$mod_dir/out/cli.js
+  install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname ./*.md
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/bash-language-server/-/commit/3ba9a12346ecb20bf388113adbf051882ca6bff9

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/bash-language-server/-/commit/3ba9a12346ecb20bf388113adbf051882ca6bff9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to