summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornycex2020-05-02 02:19:42 +0200
committernycex2020-05-02 02:21:48 +0200
commitd4d7bb298c66c004db1d1f4f176e4478b65948a7 (patch)
tree68c8066109fadc90ece4ae0d1562213260396176
downloadaur-d4d7bb298c66c004db1d1f4f176e4478b65948a7.tar.gz
initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD29
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..279e4d39e41
--- /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 00000000000..624680ca533
--- /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"
+}