28 lines
789 B
Bash
28 lines
789 B
Bash
# Template file for 'ccls'
|
|
pkgname=ccls
|
|
version=0.20190823.5
|
|
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=6f39fa5ce79c1682973811ce2409718710bfef6008f94f96277393e6846bd76c
|
|
nocross="Clang cannot be installed as makedep"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
armv6*|ppc*) makedepends+=" libatomic-devel";;
|
|
esac
|
|
|
|
post_extract() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
armv6*|ppc*)
|
|
echo "target_link_libraries(ccls PRIVATE atomic)" >> CMakeLists.txt
|
|
;;
|
|
esac
|
|
}
|