void-packages/srcpkgs/cutter/template
2022-03-05 00:57:17 +01:00

29 lines
1.3 KiB
Bash

# Template file for 'cutter'
pkgname=cutter
version=2.0.5
revision=1
_translations_commit="974298653ba71b958e1b6c83f6011f5fefff6236"
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/${pkgname}/archive/refs/tags/v${version}.tar.gz
https://github.com/rizinorg/cutter-translations/archive/${_translations_commit}.tar.gz"
checksum="c206cc72443b989b7306cbc1ec5c85206a5feb5e7dc8621fe4f03876b9e447ab
9a9d42769c1e9364dfc694968b05994d02ea840813a33b16ca6a6cbe80c90069"
post_extract() {
rmdir src/translations
mv "${XBPS_BUILDDIR}/cutter-translations-${_translations_commit}" "src/translations"
}