summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengyu Zhang2018-01-28 13:05:39 +0800
committerShengyu Zhang2018-01-28 13:05:39 +0800
commit23fe0b07047d887cb4a4002f53a421479cb1685c (patch)
treeda5b7a5ee801ef2f9ffec865500173a68f345468
downloadaur-23fe0b07047d887cb4a4002f53a421479cb1685c.tar.gz
addpkg: cquery
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD55
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe592439aa5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+# Generated by mksrcinfo v8
+# Sun Jan 28 04:58:39 UTC 2018
+pkgbase = cquery
+ pkgdesc = Low-latency vscode language server for large C++ code-bases, powered by libclang.
+ pkgver = v20180123@1825
+ pkgrel = 1
+ url = https://github.com/cquery-project/cquery/
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = python
+ makedepends = llvm
+ depends = clang
+ conflicts = cquery-git
+ source = https://github.com/cquery-project/cquery/archive/v2018-01-23@1825.tar.gz
+ source = git+https://github.com/miloyip/rapidjson
+ source = git+https://github.com/onqtam/doctest
+ source = git+https://github.com/greg7mdp/sparsepp
+ source = git+https://github.com/emilk/loguru
+ source = git+https://github.com/msgpack/msgpack-c
+ sha256sums = ff0a156638e582e7dd6af6ac5c4c364a07b216790308e1f80a982802854c85e7
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = cquery
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4ac0a9316de
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Shengyu Zhagn <la@archlinuxcn.org>
+
+pkgname=cquery
+_pkgver=v2018-01-23@1825
+pkgver=${_pkgver//-/}
+__pkgver=${_pkgver/@/-}
+__pkgver=${__pkgver:1}
+pkgrel=1
+pkgdesc='Low-latency vscode language server for large C++ code-bases, powered by libclang.'
+arch=('x86_64')
+url='https://github.com/cquery-project/cquery/'
+license=('MIT')
+depends=('clang')
+makedepends=('git' 'python' 'llvm')
+conflicts=('cquery-git')
+source=("https://github.com/cquery-project/$pkgname/archive/$_pkgver.tar.gz"
+ 'git+https://github.com/miloyip/rapidjson'
+ 'git+https://github.com/onqtam/doctest'
+ 'git+https://github.com/greg7mdp/sparsepp'
+ 'git+https://github.com/emilk/loguru'
+ 'git+https://github.com/msgpack/msgpack-c'
+ )
+sha256sums=('ff0a156638e582e7dd6af6ac5c4c364a07b216790308e1f80a982802854c85e7'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ )
+
+prepare() {
+ cd $pkgname-$__pkgver
+ cp -r $srcdir/rapidjson third_party
+ cp -r $srcdir/doctest third_party
+ cp -r $srcdir/sparsepp third_party
+ cp -r $srcdir/loguru third_party
+ cp -r $srcdir/msgpack-c third_party
+ sed -e "s/, '-Werror'//g" -i ./wscript
+}
+
+build() {
+ cd $pkgname-$__pkgver
+ python waf configure --prefix="$pkgdir/usr" --use-system-clang
+ python waf build
+}
+
+check() {
+ cd $pkgname-$__pkgver
+ yes | build/release/bin/cquery --test-unit --test-index --clang-sanity-check
+}
+
+package() {
+ cd $pkgname-$__pkgver
+ python waf install
+}