[arch-commits] Commit in radare2-cutter/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri May 8 22:19:15 UTC 2020


    Date: Friday, May 8, 2020 @ 22:19:15
  Author: anthraxx
Revision: 625812

upgpkg: radare2-cutter 1:1.10.3-1

Modified:
  radare2-cutter/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++-----------------
 1 file changed, 14 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 21:42:03 UTC (rev 625811)
+++ PKGBUILD	2020-05-08 22:19:15 UTC (rev 625812)
@@ -3,16 +3,16 @@
 # Contributor: Aaron McDaniel (mcd1992) <'aur' at the domain 'fgthou.se'>
 
 pkgname=radare2-cutter
-_gitcommit=b78df947d0a000ff38c38673fe84bae4c47a77e1
-pkgver=1.10.2
+_gitcommit=1aad797722f9fc60b80792a4cc02380c9241714a
+pkgver=1.10.3
 epoch=1
-pkgrel=3
+pkgrel=1
 pkgdesc='Qt and C++ GUI for radare2 reverse engineering framework'
 url='https://github.com/radareorg/cutter'
 arch=('x86_64')
 license=('GPL3')
 depends=('radare2' 'capstone' 'qt5-base' 'qt5-svg' 'qt5-webengine' 'icu' 'python' 'jupyter'
-         'pyside2' 'python-shiboken2')
+         'pyside2' 'python-shiboken2' 'graphviz' 'gcc-libs')
 makedepends=('git' 'cmake' 'shiboken2')
 optdepends=('r2ghidra-dec: ghidra decompiler plugin')
 source=(${pkgname}::"git+https://github.com/radareorg/cutter#commit=${_gitcommit}")
@@ -23,28 +23,25 @@
   git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }
 
-prepare() {
-  sed -e 's|PKGCONFIG += python3|PKGCONFIG += python3-embed|' -i $pkgname/src/Cutter.pro # Fix linking to python 3.8
-}
-
 build() {
-  mkdir -p ${pkgname}/build
-  cd ${pkgname}/build
+  cd ${pkgname}/src
   export CFLAGS+=" ${CPPFLAGS}"
   export CXXFLAGS+=" ${CPPFLAGS}"
-  cmake \
+  cmake -B build \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=None \
-    -DCUTTER_ENABLE_PYTHON=true \
-    -DCUTTER_ENABLE_PYTHON_BINDINGS=true \
-    -DCUTTER_USE_BUNDLED_RADARE2=false \
-    ../src
-  make VERBOSE=1
+    -DCUTTER_ENABLE_PYTHON=ON \
+    -DCUTTER_ENABLE_PYTHON_BINDINGS=ON \
+    -DCUTTER_USE_BUNDLED_RADARE2=OFF \
+    -DCUTTER_USE_ADDITIONAL_RADARE2_PATHS=OFF \
+    -DCUTTER_ENABLE_CRASH_REPORTS=OFF \
+    -DCUTTER_ENABLE_GRAPHVIZ=ON
+  make -C build VERBOSE=1
 }
 
 package() {
   cd ${pkgname}
-  install -Dm 755 build/Cutter -t "${pkgdir}/usr/bin"
+  install -Dm 755 src/build/Cutter -t "${pkgdir}/usr/bin"
   install -Dm 644 src/org.radare.Cutter.desktop -t "${pkgdir}/usr/share/applications"
   install -Dm 644 src/img/cutter.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
   install -d "${pkgdir}/usr/share/doc/${pkgname}"


More information about the arch-commits mailing list