summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonne Haß2015-06-08 11:58:46 +0200
committerJonne Haß2015-06-08 11:58:46 +0200
commit28872f7f6e32692012282209b80595e397424044 (patch)
treef3ae6317683917a800e7c920e9ee53d3d9e12c51
downloadaur-28872f7f6e32692012282209b80595e397424044.tar.gz
add completion
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD43
-rw-r--r--completion.install5
4 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..15218253dbf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = completion
+ pkgdesc = Editor and language agnostic completion backend
+ pkgver = r245.a54c2c5
+ pkgrel = 1
+ url = https://github.com/quarnster/completion
+ install = completion.install
+ arch = i636,
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = go
+ options = !strip
+ options = !emptydirs
+ source = git://github.com/quarnster/completion.git
+ source = completion.install
+ sha256sums = SKIP
+ sha256sums = baaa75b8f8e1edbd5d8eeb72456c55ed056214f3df337521d6334d67372bb8ae
+
+pkgname = completion
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..d7754b90c44
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+completion/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7ea1e142914
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Jonne Haß <me@jhass.eu>
+pkgname=completion
+pkgver=r245.a54c2c5
+pkgrel=1
+pkgdesc="Editor and language agnostic completion backend"
+url="https://github.com/quarnster/completion"
+arch=('i636', 'x86_64')
+license=('BSD')
+makedepends=('git' 'go')
+options=('!strip' '!emptydirs')
+install="$pkgname.install"
+source=('git://github.com/quarnster/completion.git' "$pkgname.install")
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir"
+ mkdir -p go
+ export GOPATH="$srcdir/go"
+ go get -d github.com/quarnster/parser
+ go get -d github.com/howeyc/fsnotify
+ go get -d github.com/robmerrell/comandante
+ ln -sf go/src/github.com/quarnster/parser parser
+ ln -sf "$srcdir/$pkgname" go/src/github.com/quarnster/$pkgname
+ cd "$srcdir/$pkgname"
+}
+
+build() {
+ cd "$srcdir/$pkgname/build"
+ make GOPATH="$srcdir/go"
+}
+
+package() {
+ cd "$srcdir/$pkgname/build"
+ install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
+sha256sums=('SKIP'
+ 'baaa75b8f8e1edbd5d8eeb72456c55ed056214f3df337521d6334d67372bb8ae')
diff --git a/completion.install b/completion.install
new file mode 100644
index 00000000000..78ccb0d338d
--- /dev/null
+++ b/completion.install
@@ -0,0 +1,5 @@
+post_install() {
+ echo "Run completion install -st to install the Sublime Text plugin,"
+ echo "correct daemon path in completion.sublime-settings afterwards"
+ echo 'and add "sublimeclang_options": ["-xc++"] to your user settings'
+}