diff options
author | bartus | 2021-08-23 14:29:23 +0200 |
---|---|---|
committer | bartus | 2021-08-23 14:29:23 +0200 |
commit | 63005f759707fc1767d498cf1bf1e1fcd84b68c9 (patch) | |
tree | 3bf63adb0bd348f4e4dc0bd835a736364585650f | |
parent | 5c221f27a8837f418b823f0c56abaa665e9c57bc (diff) | |
download | aur-63005f759707fc1767d498cf1bf1e1fcd84b68c9.tar.gz |
Build against bundled `rizin`, add control env var DISABLE_BUNDLED_RIZIN
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 32 insertions, 11 deletions
@@ -1,6 +1,6 @@ pkgbase = rz-cutter-git pkgdesc = A Qt and C++ GUI for rizin reverse engineering framework (originally named Iaito) - pkgver = 2.0.2.r3.gbc571675 + pkgver = 2.0.2.r13.g2d05ae25 pkgrel = 1 url = https://cutter.re/ arch = i686 @@ -12,7 +12,6 @@ pkgbase = rz-cutter-git makedepends = shiboken2 makedepends = qt5-tools makedepends = meson - depends = rizin>=0.3.0 depends = capstone depends = qt5-base depends = qt5-svg @@ -26,12 +25,17 @@ pkgbase = rz-cutter-git depends = gcc-libs depends = syntax-highlighting optdepends = rz-ghidra: ghidra decompiler plugin + provides = rizin=0.3.0 provides = rz-cutter + conflicts = rizin conflicts = rz-cutter + source = rizin::git+https://github.com/rizinorg/rizin source = cutter::git://github.com/rizinorg/cutter.git source = git://github.com/rizinorg/cutter-translations.git sha512sums = SKIP sha512sums = SKIP + sha512sums = SKIP + b2sums = SKIP b2sums = SKIP b2sums = SKIP @@ -1,25 +1,39 @@ #!/hint/bash # Maintainer: Aaron McDaniel (mcd1992) <'aur' at the domain 'fgthou.se'> +# shellcheck disable=SC2015 +((DISABLE_BUNDLED_RIZIN)) && { + depends+=('rizin=0.3.0') + _CMAKE_FLAGS+=(-DCUTTER_USE_BUNDLED_RIZIN=OFF) +} || { + source+=("rizin::git+https://github.com/rizinorg/rizin") + sha512sums+=('SKIP') + b2sums+=('SKIP') + _CMAKE_FLAGS+=(-DCUTTER_USE_BUNDLED_RIZIN=ON) + conflicts+=('rizin') + provides+=("rizin=0.3.0") +} + + _name=cutter pkgname=rz-${_name}-git -pkgver=2.0.2.r3.gbc571675 +pkgver=2.0.2.r13.g2d05ae25 pkgrel=1 pkgdesc="A Qt and C++ GUI for rizin reverse engineering framework (originally named Iaito)" url="https://cutter.re/" arch=('i686' 'x86_64') license=('GPL') -depends=('rizin>=0.3.0' 'capstone' 'qt5-base' 'qt5-svg' 'qt5-webengine' 'icu' 'python' 'jupyter' +depends+=('capstone' 'qt5-base' 'qt5-svg' 'qt5-webengine' 'icu' 'python' 'jupyter' 'pyside2' 'python-shiboken2' 'graphviz' 'gcc-libs' 'syntax-highlighting') makedepends=('git' 'cmake' 'ninja' 'shiboken2' 'qt5-tools' 'meson') -provides=('rz-cutter') -conflicts=('rz-cutter') +provides+=('rz-cutter') +conflicts+=('rz-cutter') optdepends=('rz-ghidra: ghidra decompiler plugin') -source=("${_name}::git://github.com/rizinorg/cutter.git" +source+=("${_name}::git://github.com/rizinorg/cutter.git" "git://github.com/rizinorg/cutter-translations.git") -sha512sums=('SKIP' +sha512sums+=('SKIP' 'SKIP') -b2sums=('SKIP' +b2sums+=('SKIP' 'SKIP') pkgver() { @@ -29,16 +43,19 @@ pkgver() { prepare() { git -C ${_name} config 'submodule.src/translations.url' "${srcdir}/${_name}-translations" git -C ${_name} submodule update --init src/translations + ((DISABLE_BUNDLED_RIZIN)) || { + git -C ${_name} config submodule.rizin.url "$srcdir/rizin" + git -C ${_name} submodule update --init rizin + } } build() { - _CMAKE_FLAGS=( + _CMAKE_FLAGS+=( -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCUTTER_ENABLE_PYTHON:BOOL=ON \ -DCUTTER_ENABLE_PYTHON_BINDINGS:BOOL=ON \ - -DCUTTER_USE_BUNDLED_RIZIN:BOOL=OFF \ -DCUTTER_USE_ADDITIONAL_RIZIN_PATHS:BOOL=OFF \ -DCUTTER_ENABLE_CRASH_REPORTS:BOOL=OFF \ -DCUTTER_ENABLE_GRAPHVIZ:BOOL=ON |