# pkgbuild-language-server
[![readthedocs](https://shields.io/readthedocs/pkgbuild-language-server)](https://pkgbuild-language-server.readthedocs.io)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Freed-Wu/pkgbuild-language-server/main.svg)](https://results.pre-commit.ci/latest/github/Freed-Wu/pkgbuild-language-server/main)
[![github/workflow](https://github.com/Freed-Wu/pkgbuild-language-server/actions/workflows/main.yml/badge.svg)](https://github.com/Freed-Wu/pkgbuild-language-server/actions)
[![codecov](https://codecov.io/gh/Freed-Wu/pkgbuild-language-server/branch/main/graph/badge.svg)](https://codecov.io/gh/Freed-Wu/pkgbuild-language-server)
[![DeepSource](https://deepsource.io/gh/Freed-Wu/pkgbuild-language-server.svg/?show_trend=true)](https://deepsource.io/gh/Freed-Wu/pkgbuild-language-server)
[![github/downloads](https://shields.io/github/downloads/Freed-Wu/pkgbuild-language-server/total)](https://github.com/Freed-Wu/pkgbuild-language-server/releases)
[![github/downloads/latest](https://shields.io/github/downloads/Freed-Wu/pkgbuild-language-server/latest/total)](https://github.com/Freed-Wu/pkgbuild-language-server/releases/latest)
[![github/issues](https://shields.io/github/issues/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/issues)
[![github/issues-closed](https://shields.io/github/issues-closed/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/issues?q=is%3Aissue+is%3Aclosed)
[![github/issues-pr](https://shields.io/github/issues-pr/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/pulls)
[![github/issues-pr-closed](https://shields.io/github/issues-pr-closed/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/pulls?q=is%3Apr+is%3Aclosed)
[![github/discussions](https://shields.io/github/discussions/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/discussions)
[![github/milestones](https://shields.io/github/milestones/all/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/milestones)
[![github/forks](https://shields.io/github/forks/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/network/members)
[![github/stars](https://shields.io/github/stars/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/stargazers)
[![github/watchers](https://shields.io/github/watchers/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/watchers)
[![github/contributors](https://shields.io/github/contributors/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/graphs/contributors)
[![github/commit-activity](https://shields.io/github/commit-activity/w/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/graphs/commit-activity)
[![github/last-commit](https://shields.io/github/last-commit/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/commits)
[![github/release-date](https://shields.io/github/release-date/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/releases/latest)
[![github/license](https://shields.io/github/license/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/blob/main/LICENSE)
[![github/languages](https://shields.io/github/languages/count/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)
[![github/languages/top](https://shields.io/github/languages/top/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)
[![github/directory-file-count](https://shields.io/github/directory-file-count/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)
[![github/code-size](https://shields.io/github/languages/code-size/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)
[![github/repo-size](https://shields.io/github/repo-size/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)
[![github/v](https://shields.io/github/v/release/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)
[![pypi/status](https://shields.io/pypi/status/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#description)
[![pypi/v](https://shields.io/pypi/v/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#history)
[![pypi/downloads](https://shields.io/pypi/dd/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)
[![pypi/format](https://shields.io/pypi/format/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)
[![pypi/implementation](https://shields.io/pypi/implementation/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)
[![pypi/pyversions](https://shields.io/pypi/pyversions/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)
Language server for [ArchLinux](https://archlinux.org)/[Windows Msys2](https://msys2.org)'s
[PKGBUILD](https://wiki.archlinux.org/title/PKGBUILD) and
[`*.install`](https://wiki.archlinux.org/title/PKGBUILD#install).
`PKGBUILD` is a subtype of bash.
This language server only provides extra features for `build.sh` which
[bash-language-server](https://github.com/bash-lsp/bash-language-server)
doesn't support:
- [x] [Diagnostic](https://microsoft.github.io/language-server-protocol/specifications/specification-current#diagnostic):
- [x] [namcap](https://wiki.archlinux.org/title/Namcap)
- [x] variable type. Such as: `depends` shouldn't be a function
- [ ] unsorted builtin variables/functions
- [ ] unsorted array. Such as: `depends=(pyalpm namcap)` should be
`depends=(namcap pyalpm)`
- [ ] [Document Formatting](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_formatting):
- [ ] sort builtin variables/functions
- [ ] sort array
- [x] [Document Link](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_documentLink):
jump to <https://archlinux.org/packages/package_name>
- [x] [Hover](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_hover)
- [x] packages
- [x] builtin variables/functions
- [x] [Completion](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_completion):
- [x] packages
- [x] builtin variables/functions
- [ ] [Code Action](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_codeAction)
- [ ] generate a template by the name of directory containing `PKGBUILD`, the
templates comes from:
- [ ] customized by user
- [ ] [pip2pkgbuild](https://github.com/wenLiangcan/pip2pkgbuild)
- [ ] [cpan2aur](https://metacpan.org/release/CPANPLUS-Dist-Arch)
- [ ] [gem2arch](https://github.com/anatol/gem2arch)
- [ ] [arch-hs](https://github.com/berberman/arch-hs)
- [ ] update `.SRCINFO` by `makepkg --printsrcinfo > .SRCINFO`
- [ ] update `pkgsums` by [`updpkgsums`](https://gitlab.archlinux.org/pacman/pacman-contrib)
- [ ] update version by a `nvcheck.toml` to tell this
program where to search new version:
```toml
[package_name]
source = "github"
github = "author_name/repo_name"
use_max_tag = true
```
Other features:
- [x] pre-commit-hooks
- [x] linter
- [ ] formatter
## Document Link
![document link](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/d3777f3c-9b75-41f9-b6b3-1c4ec55c7283)
## Hover
![keyword](https://github.com/Freed-Wu/requirements-language-server/assets/32936898/91bfde00-28f7-4376-8b7a-10a0bd56ba51)
![package](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/3d9fa906-35ea-4063-a9eb-06282d3e8596)
## Completion
![keyword](https://github.com/Freed-Wu/requirements-language-server/assets/32936898/b4444ba5-44ab-473c-9691-b3d61ed09acd)
![package](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/090dae36-52fe-47f9-ae2d-cd3256cb55e8)
## Diagnostic
![namcap](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/71337b4c-87f3-4b95-9edd-f194cacb5cdf)
Read
[![readthedocs](https://shields.io/readthedocs/pkgbuild-language-server)](https://pkgbuild-language-server.readthedocs.io)
to know more.
Raw data
{
"_id": null,
"home_page": "",
"name": "pkgbuild-language-server",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "pkgbuild,language server",
"author": "",
"author_email": "Wu Zhenyu <wuzhenyu@ustc.edu>",
"download_url": "https://files.pythonhosted.org/packages/80/cd/43f3cc33dbc581c0a504ace29e5727574ef572ab31e9fba78acb4ecfaf3b/pkgbuild-language-server-0.0.7.tar.gz",
"platform": null,
"description": "# pkgbuild-language-server\n\n[![readthedocs](https://shields.io/readthedocs/pkgbuild-language-server)](https://pkgbuild-language-server.readthedocs.io)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Freed-Wu/pkgbuild-language-server/main.svg)](https://results.pre-commit.ci/latest/github/Freed-Wu/pkgbuild-language-server/main)\n[![github/workflow](https://github.com/Freed-Wu/pkgbuild-language-server/actions/workflows/main.yml/badge.svg)](https://github.com/Freed-Wu/pkgbuild-language-server/actions)\n[![codecov](https://codecov.io/gh/Freed-Wu/pkgbuild-language-server/branch/main/graph/badge.svg)](https://codecov.io/gh/Freed-Wu/pkgbuild-language-server)\n[![DeepSource](https://deepsource.io/gh/Freed-Wu/pkgbuild-language-server.svg/?show_trend=true)](https://deepsource.io/gh/Freed-Wu/pkgbuild-language-server)\n\n[![github/downloads](https://shields.io/github/downloads/Freed-Wu/pkgbuild-language-server/total)](https://github.com/Freed-Wu/pkgbuild-language-server/releases)\n[![github/downloads/latest](https://shields.io/github/downloads/Freed-Wu/pkgbuild-language-server/latest/total)](https://github.com/Freed-Wu/pkgbuild-language-server/releases/latest)\n[![github/issues](https://shields.io/github/issues/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/issues)\n[![github/issues-closed](https://shields.io/github/issues-closed/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/issues?q=is%3Aissue+is%3Aclosed)\n[![github/issues-pr](https://shields.io/github/issues-pr/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/pulls)\n[![github/issues-pr-closed](https://shields.io/github/issues-pr-closed/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/pulls?q=is%3Apr+is%3Aclosed)\n[![github/discussions](https://shields.io/github/discussions/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/discussions)\n[![github/milestones](https://shields.io/github/milestones/all/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/milestones)\n[![github/forks](https://shields.io/github/forks/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/network/members)\n[![github/stars](https://shields.io/github/stars/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/stargazers)\n[![github/watchers](https://shields.io/github/watchers/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/watchers)\n[![github/contributors](https://shields.io/github/contributors/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/graphs/contributors)\n[![github/commit-activity](https://shields.io/github/commit-activity/w/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/graphs/commit-activity)\n[![github/last-commit](https://shields.io/github/last-commit/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/commits)\n[![github/release-date](https://shields.io/github/release-date/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/releases/latest)\n\n[![github/license](https://shields.io/github/license/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server/blob/main/LICENSE)\n[![github/languages](https://shields.io/github/languages/count/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)\n[![github/languages/top](https://shields.io/github/languages/top/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)\n[![github/directory-file-count](https://shields.io/github/directory-file-count/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)\n[![github/code-size](https://shields.io/github/languages/code-size/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)\n[![github/repo-size](https://shields.io/github/repo-size/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)\n[![github/v](https://shields.io/github/v/release/Freed-Wu/pkgbuild-language-server)](https://github.com/Freed-Wu/pkgbuild-language-server)\n\n[![pypi/status](https://shields.io/pypi/status/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#description)\n[![pypi/v](https://shields.io/pypi/v/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#history)\n[![pypi/downloads](https://shields.io/pypi/dd/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)\n[![pypi/format](https://shields.io/pypi/format/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)\n[![pypi/implementation](https://shields.io/pypi/implementation/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)\n[![pypi/pyversions](https://shields.io/pypi/pyversions/pkgbuild-language-server)](https://pypi.org/project/pkgbuild-language-server/#files)\n\nLanguage server for [ArchLinux](https://archlinux.org)/[Windows Msys2](https://msys2.org)'s\n[PKGBUILD](https://wiki.archlinux.org/title/PKGBUILD) and\n[`*.install`](https://wiki.archlinux.org/title/PKGBUILD#install).\n\n`PKGBUILD` is a subtype of bash.\nThis language server only provides extra features for `build.sh` which\n[bash-language-server](https://github.com/bash-lsp/bash-language-server)\ndoesn't support:\n\n- [x] [Diagnostic](https://microsoft.github.io/language-server-protocol/specifications/specification-current#diagnostic):\n - [x] [namcap](https://wiki.archlinux.org/title/Namcap)\n - [x] variable type. Such as: `depends` shouldn't be a function\n - [ ] unsorted builtin variables/functions\n - [ ] unsorted array. Such as: `depends=(pyalpm namcap)` should be\n `depends=(namcap pyalpm)`\n- [ ] [Document Formatting](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_formatting):\n - [ ] sort builtin variables/functions\n - [ ] sort array\n- [x] [Document Link](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_documentLink):\n jump to <https://archlinux.org/packages/package_name>\n- [x] [Hover](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_hover)\n - [x] packages\n - [x] builtin variables/functions\n- [x] [Completion](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_completion):\n - [x] packages\n - [x] builtin variables/functions\n- [ ] [Code Action](https://microsoft.github.io/language-server-protocol/specifications/specification-current#textDocument_codeAction)\n - [ ] generate a template by the name of directory containing `PKGBUILD`, the\n templates comes from:\n - [ ] customized by user\n - [ ] [pip2pkgbuild](https://github.com/wenLiangcan/pip2pkgbuild)\n - [ ] [cpan2aur](https://metacpan.org/release/CPANPLUS-Dist-Arch)\n - [ ] [gem2arch](https://github.com/anatol/gem2arch)\n - [ ] [arch-hs](https://github.com/berberman/arch-hs)\n - [ ] update `.SRCINFO` by `makepkg --printsrcinfo > .SRCINFO`\n - [ ] update `pkgsums` by [`updpkgsums`](https://gitlab.archlinux.org/pacman/pacman-contrib)\n - [ ] update version by a `nvcheck.toml` to tell this\n program where to search new version:\n\n```toml\n[package_name]\nsource = \"github\"\ngithub = \"author_name/repo_name\"\nuse_max_tag = true\n```\n\nOther features:\n\n- [x] pre-commit-hooks\n - [x] linter\n - [ ] formatter\n\n## Document Link\n\n![document link](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/d3777f3c-9b75-41f9-b6b3-1c4ec55c7283)\n\n## Hover\n\n![keyword](https://github.com/Freed-Wu/requirements-language-server/assets/32936898/91bfde00-28f7-4376-8b7a-10a0bd56ba51)\n\n![package](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/3d9fa906-35ea-4063-a9eb-06282d3e8596)\n\n## Completion\n\n![keyword](https://github.com/Freed-Wu/requirements-language-server/assets/32936898/b4444ba5-44ab-473c-9691-b3d61ed09acd)\n\n![package](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/090dae36-52fe-47f9-ae2d-cd3256cb55e8)\n\n## Diagnostic\n\n![namcap](https://github.com/Freed-Wu/pkgbuild-language-server/assets/32936898/71337b4c-87f3-4b95-9edd-f194cacb5cdf)\n\nRead\n[![readthedocs](https://shields.io/readthedocs/pkgbuild-language-server)](https://pkgbuild-language-server.readthedocs.io)\nto know more.\n",
"bugtrack_url": null,
"license": "GPL v3",
"summary": "pkgbuild language server",
"version": "0.0.7",
"project_urls": {
"Bug Report": "https://github.com/termux/termux-language-server/issues",
"Download": "https://github.com/termux/termux-language-server/releases",
"Homepage": "https://termux-language-server.readthedocs.io",
"Source": "https://github.com/termux/termux-language-server"
},
"split_keywords": [
"pkgbuild",
"language server"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "58adc1aa6a772b1cb65a96a500eb4cc6fb787e5c3cd06216b979db4d7cfe5845",
"md5": "91f67fbb78bc6cdbafc0bd6161482fed",
"sha256": "5e9b5d98541847b9ffab5feb693f91ece402f5fbcca4d9d01e1af364e44e8b4c"
},
"downloads": -1,
"filename": "pkgbuild_language_server-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "91f67fbb78bc6cdbafc0bd6161482fed",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 16016,
"upload_time": "2023-10-26T15:43:11",
"upload_time_iso_8601": "2023-10-26T15:43:11.953261Z",
"url": "https://files.pythonhosted.org/packages/58/ad/c1aa6a772b1cb65a96a500eb4cc6fb787e5c3cd06216b979db4d7cfe5845/pkgbuild_language_server-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "80cd43f3cc33dbc581c0a504ace29e5727574ef572ab31e9fba78acb4ecfaf3b",
"md5": "d79876efbc878719697cde182d10669d",
"sha256": "10b2c236839787fb63b8a1e63ba6e16ea1b7c37d4c82e3fb207617488b1f1754"
},
"downloads": -1,
"filename": "pkgbuild-language-server-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "d79876efbc878719697cde182d10669d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 16729,
"upload_time": "2023-10-26T15:43:13",
"upload_time_iso_8601": "2023-10-26T15:43:13.563938Z",
"url": "https://files.pythonhosted.org/packages/80/cd/43f3cc33dbc581c0a504ace29e5727574ef572ab31e9fba78acb4ecfaf3b/pkgbuild-language-server-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-26 15:43:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "termux",
"github_project": "termux-language-server",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pkgbuild-language-server"
}