void-packages/srcpkgs/cutter/template

38 lines
1.5 KiB
Bash

# Template file for 'cutter'
pkgname=cutter
version=2.1.0
revision=1
_translations_commit="67f5c654523d22c7843811e5aa852a01742f6f12"
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 git"
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="GUI for radare2 written in C++ and QT"
maintainer="Urs Schulz <voidpkgs@ursschulz.de>"
license="GPL-3.0-only"
homepage="https://cutter.re"
distfiles="https://github.com/rizinorg/cutter/archive/refs/tags/v${version}.tar.gz
https://github.com/rizinorg/cutter-translations/archive/${_translations_commit}.tar.gz"
checksum="60aacead1604c2dc8afad4239732ad10d5882ab38828e695c0f53d1e134c2a5c
12a06a7f977cf7c6d28e1d466cb9e421edb2d26c36e838d02292e5e45bc326c5"
post_extract() {
rmdir src/translations
mv "${XBPS_BUILDDIR}/cutter-translations-${_translations_commit}" "src/translations"
}
cutter-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
}
}