summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsballert2018-09-17 22:14:57 +0200
committersballert2018-09-17 22:14:57 +0200
commit1005ab87902555789f14e6a025891238f8f0d50e (patch)
tree2f4fd171d2ab0bed688b0d5f72684a05fecf3d1e
downloadaur-1005ab87902555789f14e6a025891238f8f0d50e.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD34
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9f12e630c32
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = emacs-company-lsp-git
+ pkgdesc = Company completion backend for lsp-mod
+ pkgver = r48.82c3f1a
+ pkgrel = 1
+ url = https://github.com/tigersoldier/company-lsp
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = emacs
+ depends = emacs-company-mode
+ depends = emacs-dash
+ depends = emacs-lsp-mode
+ depends = emacs-s
+ provides = emacs-company-lsp
+ conflicts = emacs-company-lsp
+ source = git+https://github.com/tigersoldier/company-lsp.git
+ sha256sums = SKIP
+
+pkgname = emacs-company-lsp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..17963b6293c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: sballert <sballert@posteo.de>
+
+_gituser="tigersoldier"
+_gitrepo="company-lsp"
+
+pkgname=emacs-company-lsp-git
+pkgver=r48.82c3f1a
+pkgrel=1
+pkgdesc="Company completion backend for lsp-mod"
+url="https://github.com/${_gituser}/${_gitrepo}"
+arch=('any')
+license=('GPL3')
+depends=('emacs' 'emacs-company-mode' 'emacs-dash' 'emacs-lsp-mode' 'emacs-s')
+makedepends=('git')
+provides=('emacs-company-lsp')
+conflicts=('emacs-company-lsp')
+source=("git+https://github.com/${_gituser}/${_gitrepo}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_gitrepo"
+ printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$_gitrepo"
+ emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
+}
+
+package() {
+ cd "$_gitrepo"
+ install -d "$pkgdir"/usr/share/emacs/site-lisp/${_gitrepo}/
+ install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/${_gitrepo}/
+}