# Template file for 'ccls'
pkgname=ccls
version=0.20210330
revision=2
build_style=cmake
hostmakedepends="clang-tools-extra"
makedepends="llvm ncurses-devel rapidjson zlib-devel clang-tools-extra"
short_desc="C/C++/ObjC language server"
maintainer="Nathan Owens <ndowens@artixlinux.org>"
license="Apache-2.0"
homepage="https://github.com/MaskRay/ccls"
distfiles="https://github.com/MaskRay/ccls/archive/${version}.tar.gz"
checksum=28c228f49dfc0f23cb5d581b7de35792648f32c39f4ca35f68ff8c9cb5ce56c2

if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
	makedepends+=" libatomic-devel"
	configure_args="-DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
fi
