# Template file for 'ccls'
pkgname=ccls
version=0.20220729
revision=1
build_style=cmake
hostmakedepends="clang-tools-extra"
makedepends="clang-tools-extra libxml2-devel llvm ncurses-devel rapidjson zlib-devel"
short_desc="C/C++/ObjC language server"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/MaskRay/ccls"
distfiles="https://github.com/MaskRay/ccls/archive/${version}.tar.gz"
checksum=af19be36597c2a38b526ce7138c72a64c7fb63827830c4cff92256151fc7a6f4

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