David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
dot-language-server


Commits:
135923e8 by David Runge at 2026-07-19T12:07:51+02:00
upgpkg: 3.1.2-1

Use system-provided typescript and bun for the build.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,14 +1,16 @@
 pkgbase = dot-language-server
        pkgdesc = A language server for the DOT language
-       pkgver = 3.1.1
+       pkgver = 3.1.2
        pkgrel = 1
        url = https://github.com/nikeee/dot-language-server
        arch = any
        license = MIT
+       makedepends = bun
        makedepends = npm
+       makedepends = typescript
        depends = nodejs
-       source = 
https://github.com/nikeee/dot-language-server/archive/v3.1.1/dot-language-server-v3.1.1.tar.gz
-       sha512sums = 
30770c716e84bc9f47177ab9c7052cd94aea0a3c4be6a9319e29eb6d527995a8e4f56c2b072cedf51d4393022c1199cafa1bacdcc10801334f50d47cae190fcc
-       b2sums = 
86165eb89fb2e6db9acb5003969947ef360a1e3892eb6fb7332b5a522d185bb667b3f3a157f94f78f3f5555001b7f8a6827bd7b6b410c647dab9c7972d9163bf
+       source = 
https://github.com/nikeee/dot-language-server/archive/v3.1.2/dot-language-server-v3.1.2.tar.gz
+       sha512sums = 
57e95d8e7617ca0362526fadc69a7a71a91833cb76b0c26bfe7c30bd7ae20df2fc04459a8a2f60a272f0f87dca3459b07ae4307dec3c22974c82fe593f2d4295
+       b2sums = 
23939096746e5da85647865febb2b25b410782c8f24140cc8be28e2cfbe827f9a24522e6278ea902cb05db89b84e33ee16374bf1c785ca1d6b19da33986452df
 
 pkgname = dot-language-server


=====================================
PKGBUILD
=====================================
@@ -1,22 +1,29 @@
 # Maintainer: David Runge <[email protected]>
 
 pkgname=dot-language-server
-pkgver=3.1.1
+pkgver=3.1.2
 pkgrel=1
 pkgdesc="A language server for the DOT language"
 arch=(any)
 url="https://github.com/nikeee/dot-language-server";
 license=(MIT)
 depends=(nodejs)
-makedepends=(npm)
+makedepends=(
+  bun
+  npm
+  typescript
+)
 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
-sha512sums=('30770c716e84bc9f47177ab9c7052cd94aea0a3c4be6a9319e29eb6d527995a8e4f56c2b072cedf51d4393022c1199cafa1bacdcc10801334f50d47cae190fcc')
-b2sums=('86165eb89fb2e6db9acb5003969947ef360a1e3892eb6fb7332b5a522d185bb667b3f3a157f94f78f3f5555001b7f8a6827bd7b6b410c647dab9c7972d9163bf')
+sha512sums=('57e95d8e7617ca0362526fadc69a7a71a91833cb76b0c26bfe7c30bd7ae20df2fc04459a8a2f60a272f0f87dca3459b07ae4307dec3c22974c82fe593f2d4295')
+b2sums=('23939096746e5da85647865febb2b25b410782c8f24140cc8be28e2cfbe827f9a24522e6278ea902cb05db89b84e33ee16374bf1c785ca1d6b19da33986452df')
 
 build() {
   cd $pkgname-$pkgver
-  npm install --cache "$srcdir"/npm-cache
-  npm run build --cache "$srcdir"/npm-cache
+  npm install --omit=dev --cache "$srcdir"/npm-cache
+  # required for typescript when not installing dev dependencies
+  npm install --save-dev @types/node --cache "$srcdir"/npm-cache
+  tsc
+  bun build --compile --minify src/cli.ts --target=bun-linux-x64-modern 
--outfile=dist/linux-x64/dot-language-server
 }
 
 check() {
@@ -67,10 +74,16 @@ package() {
     -iname '*.sh' -o
     -iname '*.tags*' -o
     -iname '*.tm_properties' -o
+    -iname '*tsc' -o
     -iname '*.wotanrc.yaml' -o
     -iname '*tsconfig.json' -o
     -iname '*yarn.lock'
   )
+  local find_symlinks=(
+    -iname '*bun' -o
+    -iname '*bunx' -o
+    -iname '*tsc'
+  )
   local find_dirs=(
     -iwholename '*.github' -o
     -iwholename '*.idea' -o
@@ -84,6 +97,7 @@ package() {
   cd $pkgname-$pkgver
   # remove unneeded files
   find node_modules -type f \( "${find_files[@]}" \) -delete
+  find node_modules -type l \( "${find_symlinks[@]}" \) -exec rm --force 
--verbose {} +
   find node_modules -type d \( "${find_dirs[@]}" \) -exec rm -rvf {} +
 
   install -vdm 755 "$pkgdir/usr/lib/node_modules/$pkgname/"



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/dot-language-server/-/commit/135923e80c7405eb36b84a15ad0f8c3b4a3007fd

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/dot-language-server/-/commit/135923e80c7405eb36b84a15ad0f8c3b4a3007fd
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to