Date: Wednesday, February 12, 2020 @ 13:42:05 Author: felixonmars Revision: 569328
addpkg: ccls 0.20190823.5-2 Added: ccls/ ccls/repos/ ccls/trunk/ ccls/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Added: ccls/trunk/PKGBUILD =================================================================== --- ccls/trunk/PKGBUILD (rev 0) +++ ccls/trunk/PKGBUILD 2020-02-12 13:42:05 UTC (rev 569328) @@ -0,0 +1,30 @@ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Fangrui Song <i at maskray.me> + +pkgname=ccls +pkgver=0.20190823.5 +pkgrel=2 +pkgdesc='C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting' +arch=('x86_64') +url='https://github.com/MaskRay/ccls' +license=('Apache') +depends=('clang' 'llvm-libs' 'rapidjson') +makedepends=("cmake" "llvm") +conflicts=('ccls-git') +source=("https://github.com/MaskRay/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('6f39fa5ce79c1682973811ce2409718710bfef6008f94f96277393e6846bd76c') + +prepare() { + cd $pkgname-$pkgver +} + +build() { + cd $pkgname-$pkgver + cmake -H. -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER=clang++ + cmake --build build +} + +package() { + cd $pkgname-$pkgver/build + make DESTDIR="$pkgdir" install +}
