diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..279e4d39e41a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = zls-git + pkgdesc = Zig LSP implementation + Zig Language Server + pkgver = r4.999a365 + pkgrel = 1 + url = https://github.com/SuperAuguste/zls + arch = any + license = MIT + depends = zig + source = git+https://github.com/SuperAuguste/zls + sha256sums = SKIP + +pkgname = zls-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..624680ca533c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: nycex <nycex / cccp.org> +_pkgbasename=zls +pkgname=${_pkgbasename}-git +pkgrel=1 +pkgver=r4.999a365 +pkgdesc="Zig LSP implementation + Zig Language Server" +arch=('any') +url="https://github.com/SuperAuguste/${_pkgbasename}" +license=('MIT') +depends=('zig') +source=(git+https://github.com/SuperAuguste/${_pkgbasename}) +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgbasename}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${_pkgbasename}" + zig build -Drelease-fast +} + +package() { + cd "${srcdir}/${_pkgbasename}" + + install -D -m755 zig-cache/bin/$_pkgbasename "${pkgdir}/usr/bin/$_pkgbasename" + install -D -m644 LICENSE.md "${pkgdir}/usr/share/license/$_pkgbasename/LICENSE" +} |