void-packages/srcpkgs/codelite/template

40 lines
1.4 KiB
Bash

# Template file for 'codelite'
pkgname=codelite
version=16.0.0
revision=3
create_wrksrc=yes
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
configure_args="-DWITH_PCH=0 -DWITH_WX_CONFIG=wx-config-gtk3
$(vopt_if sftp -DENABLE_SFTP=1 -DENABLE_SFTP=0)
$(vopt_if lldb -DENABLE_LLDB=1 -DENABLE_LLDB=0)"
hostmakedepends="pkg-config which"
makedepends="gtk+3-devel wxWidgets-gtk3-devel sqlite-devel MesaLib-devel
$(vopt_if lldb lldb-devel) $(vopt_if hunspell hunspell-devel)
$(vopt_if sftp libssh-devel)"
short_desc="Open-source, cross platform IDE for the C/C++ programming languages"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz
https://github.com/eranif/ctags/archive/52c724d1132d78ea44894bfe2eaca44f38a9bd85.tar.gz"
checksum="fb707b98b2f56ae0791c7cb341c6a0240ff26a785dae31f7dcd1038956737957
7925adbe15cd240c7e65cf54e8752e7f5dbb24622342b84d151de97d2d75acea"
python_version=3
build_options="hunspell lldb sftp"
build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_lldb="Enable support for LLDB"
desc_option_sftp="Enable Workspace Mirroring plugin"
case "$XBPS_TARGET_MACHINE" in
x86_64*|ppc64le*|aarch64*|arm*) build_options_default+=" lldb";;
esac
post_extract() {
mv codelite-${version}/* .
rm -rf universal-ctags
mv ctags-52c724d1132d78ea44894bfe2eaca44f38a9bd85 universal-ctags
}