25 lines
740 B
Bash
25 lines
740 B
Bash
# Template file for 'ccls'
|
|
pkgname=ccls
|
|
version=0.20201025
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="clang-tools-extra"
|
|
makedepends="clang llvm ncurses-devel rapidjson zlib-devel"
|
|
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=1470797b2c1a466e2d8a069efd807aac6fefdef8a556e1edf2d44f370c949221
|
|
nocross="Clang cannot be installed as makedep"
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
post_extract() {
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
echo "target_link_libraries(ccls PRIVATE atomic)" >> CMakeLists.txt
|
|
fi
|
|
}
|