diff options
author | karel- | 2018-04-28 20:38:35 +0300 |
---|---|---|
committer | karel- | 2018-04-28 20:38:35 +0300 |
commit | c822856d68d10d62e2d622e23fe41d8ec2bc23af (patch) | |
tree | 4d4b08e133ba2f12a7ad152906a1f01920a03189 | |
download | aur-c822856d68d10d62e2d622e23fe41d8ec2bc23af.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 63 |
2 files changed, 94 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d25d3998619c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = ycmd-git + pkgdesc = A code-completion & code-comprehension server + pkgver = r1969.1c190032 + pkgrel = 1 + url = https://github.com/Valloric/ycmd + arch = i686 + arch = x86_64 + license = GPLv3 + makedepends = cmake + makedepends = git + depends = clang + depends = python + provides = ycmd + conflicts = ycmd + source = git+https://github.com/Valloric/ycmd.git + source = git+https://github.com/bottlepy/bottle.git + source = git+https://github.com/slezica/python-frozendict.git + source = git+https://github.com/vheon/JediHTTP.git + source = git+https://github.com/PythonCharmers/python-future.git + source = git+https://github.com/requests/requests.git + source = git+https://github.com/Pylons/waitress.git + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = ycmd-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e7df3e1edc3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: karel + +pkgname=ycmd-git +_gitname=ycmd +pkgver=r1969.1c190032 +pkgrel=1 +pkgdesc="A code-completion & code-comprehension server" +arch=('i686' 'x86_64') +url="https://github.com/Valloric/ycmd" +license=('GPLv3') +depends=('clang' 'python') +makedepends=('cmake' 'git') +provides=('ycmd') +conflicts=('ycmd') +source=("git+https://github.com/Valloric/ycmd.git" + "git+https://github.com/bottlepy/bottle.git" + "git+https://github.com/slezica/python-frozendict.git" + "git+https://github.com/vheon/JediHTTP.git" + "git+https://github.com/PythonCharmers/python-future.git" + "git+https://github.com/requests/requests.git" + "git+https://github.com/Pylons/waitress.git") +sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/$_gitname" + git submodule init third_party/bottle \ + third_party/frozendict \ + third_party/JediHTTP \ + third_party/python-future \ + third_party/requests \ + third_party/waitress + git config submodule.third_party/bottle.url $srcdir/bottle + git config submodule.third_party/frozendict.url $srcdir/python-frozendict + git config submodule.third_party/JediHTTP.url $srcdir/JediHTTP + git config submodule.third_party/python-future.url $srcdir/python-future + git config submodule.third_party/requests.url $srcdir/requests + git config submodule.third_party/waitress.url $srcdir/waitress + git submodule update +} + +build() { + cd "$srcdir/$_gitname" + mkdir -p build + cd build + cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON -DUSE_PYTHON2=OFF . ../cpp/ + make ycm_core +} + +package() { + local trgtdir=usr/share/ycmd + mkdir -p "$pkgdir/$trgtdir/third_party" + cp -r "$srcdir/$_gitname/"{ycmd,ycm_core.so,CORE_VERSION,cpp,clang_includes} \ + "$pkgdir/$trgtdir" + cp -r "$srcdir/$_gitname/third_party/"{bottle,frozendict,JediHTTP,python-future,requests,waitress} \ + "$pkgdir/$trgtdir/third_party" + find "$pkgdir" -name .git -exec rm -fr {} + + rm -rf "$pkgdir/$trgtdir/ycmd/tests" +} |