25 lines
739 B
Bash
25 lines
739 B
Bash
# Template file for 'ccls'
|
|
pkgname=ccls
|
|
version=0.20190823.6
|
|
revision=1
|
|
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 <ndowens04@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/MaskRay/ccls"
|
|
distfiles="https://github.com/MaskRay/ccls/archive/${version}.tar.gz"
|
|
checksum=83dd45120e9674319f91e4379013831e124c0858e050bbc3521e3f8aebe5c95b
|
|
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
|
|
}
|