# Template file for 'cutter'
pkgname=cutter
version=2.2.0
revision=1
build_style=cmake
configure_args="-DCUTTER_EXTRA_PLUGIN_DIRS=/usr/lib/rizin/cutter/plugins
 -DCUTTER_ENABLE_PYTHON=ON -DCUTTER_ENABLE_PYTHON_BINDINGS=OFF
 -DCUTTER_ENABLE_GRAPHVIZ=ON -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING=ON
 -DCUTTER_USE_BUNDLED_RIZIN=OFF -DCUTTER_USE_ADDITIONAL_RIZIN_PATHS=OFF
 -DCUTTER_ENABLE_CRASH_REPORTS=OFF"
hostmakedepends="pkg-config qt5-qmake qt5-host-tools meson"
makedepends="capstone-devel python3-devel qt5-declarative-devel qt5-location-devel
 qt5-svg-devel graphviz-devel libshiboken2-devel libpyside2-python3-devel
 syntax-highlighting-devel rizin-devel"
short_desc="Free and open source reverse engineering platform powered by rizin"
maintainer="Urs Schulz <voidpkgs@ursschulz.de>"
license="GPL-3.0-only"
homepage="https://cutter.re"
distfiles="https://github.com/rizinorg/cutter/releases/download/v${version}/Cutter-v${version}-src.tar.gz"
checksum=f5d2017c657ffb0eb001710e111a05b3068b40a29b51f5d8f4a650a037329f35

cutter-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
	}
}
