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


Commits:
3659caae by Daniel M. Capella at 2025-03-07T23:29:58-05:00
upgpkg: 1.17.0-1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,15 +1,16 @@
 pkgbase = yaml-language-server
        pkgdesc = YAML Language Server
-       pkgver = 1.16.0
+       pkgver = 1.17.0
        pkgrel = 1
        url = https://github.com/redhat-developer/yaml-language-server
        arch = any
        license = MIT
+       makedepends = git
        makedepends = jq
        makedepends = yarn
        depends = nodejs-lts
        options = !emptydirs
-       source = 
https://github.com/redhat-developer/yaml-language-server/archive/1.16.0/yaml-language-server-1.16.0.tar.gz
-       b2sums = 
2cd5fd13dae1e144d338d381951422605b9006dfdc5c6e3638d83bbe7c98a80a36f70bf5e3f72e121d9a09ff92310fa9e8ac11750cbe7149aa4a634e9f449066
+       source = 
git+https://github.com/redhat-developer/yaml-language-server.git#tag=1.17.0
+       b2sums = 
8a4465006c9a130fcd1bdaaec7e82715b19679eef3d52efb63d89db6f41e4ae45150ed6908885d51265215ff348c300c0a2715aeeaf3263974fb0dabe077d8a3
 
 pkgname = yaml-language-server


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 # Contributor: hexchain <i at hexchain dot org>
 
 pkgname=yaml-language-server
-pkgver=1.16.0
+pkgver=1.17.0
 pkgrel=1
 pkgdesc='YAML Language Server'
 url=https://github.com/redhat-developer/yaml-language-server
@@ -10,26 +10,32 @@ license=(MIT)
 arch=(any)
 depends=(nodejs-lts)
 makedepends=(
+  git
   jq
   yarn
 )
 options=(!emptydirs)
-source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-b2sums=('2cd5fd13dae1e144d338d381951422605b9006dfdc5c6e3638d83bbe7c98a80a36f70bf5e3f72e121d9a09ff92310fa9e8ac11750cbe7149aa4a634e9f449066')
+source=("git+$url.git#tag=$pkgver")
+b2sums=('8a4465006c9a130fcd1bdaaec7e82715b19679eef3d52efb63d89db6f41e4ae45150ed6908885d51265215ff348c300c0a2715aeeaf3263974fb0dabe077d8a3')
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   yarn --frozen-lockfile
   yarn compile
 }
 
 check() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   yarn test
 }
 
 package() {
-  cd $pkgname-$pkgver
+  local mod_dir=/usr/lib/node_modules/$pkgname
+
+  install -d "$pkgdir"/{usr/bin,$mod_dir}
+  ln -s $mod_dir/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+
+  cd $pkgname
 
   # Emulate `npm prune --omit=dev`
   cp package.json{,.bak}
@@ -37,10 +43,7 @@ package() {
   yarn remove --frozen-lockfile "${devDependencies[@]}"
   mv package.json{.bak,}
 
-  install -d "$pkgdir"/usr/{bin,lib/node_modules/$pkgname}
-  ln -s ../lib/node_modules/$pkgname/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
-  cp -r bin node_modules out package.json \
-    "$pkgdir"/usr/lib/node_modules/$pkgname
+  cp -r bin node_modules out package.json "$pkgdir"/$mod_dir
   install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname {CHANGELOG,README}.md
   install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/yaml-language-server/-/commit/3659caaed9bcb0a13682fbfb8bc277ff67914668

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


Reply via email to