[arch-commits] Commit in r2ghidra-dec/repos (2 files)

Levente Polyak anthraxx at archlinux.org
Mon Aug 24 23:08:49 UTC 2020


    Date: Monday, August 24, 2020 @ 23:08:49
  Author: anthraxx
Revision: 687898

archrelease: copy trunk to community-staging-x86_64

Added:
  r2ghidra-dec/repos/community-staging-x86_64/
  r2ghidra-dec/repos/community-staging-x86_64/PKGBUILD
    (from rev 687897, r2ghidra-dec/trunk/PKGBUILD)

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

Copied: r2ghidra-dec/repos/community-staging-x86_64/PKGBUILD (from rev 687897, r2ghidra-dec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-24 23:08:49 UTC (rev 687898)
@@ -0,0 +1,59 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=r2ghidra-dec
+_gitcommit=17ec3b3041e21f0492878e1d3147cdcd5830ae00
+_gitcutter=9a822ec3964381cb917da593b6404ee72be5433a
+pkgver=r2.4.5.0
+pkgrel=1
+pkgdesc='Deep ghidra decompiler integration for radare2 and Cutter'
+url='https://github.com/radareorg/r2ghidra-dec'
+arch=('x86_64')
+license=('LGPL3')
+depends=('radare2' 'glibc')
+makedepends=('git' 'cmake' 'qt5-base')
+provides=('radare2-cutter-r2ghidra-dec'
+          'radare2-r2ghidra-dec')
+source=("git+https://github.com/radareorg/r2ghidra-dec#commit=${_gitcommit}"
+        "git+https://github.com/radareorg/cutter#commit=${_gitcutter}"
+        thestr4ng3r-ghidra::git+https://github.com/thestr4ng3r/ghidra.git
+        git+https://github.com/zeux/pugixml.git)
+sha512sums=('SKIP'
+            'SKIP'
+            'SKIP'
+            'SKIP')
+
+pkgver() {
+  cd ${pkgname}
+  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  cd ${pkgname}
+  git submodule init
+  git config submodule."third-party/pugixml".url "${srcdir}/pugixml"
+  git config submodule."ghidra/ghidra".url "${srcdir}/thestr4ng3r-ghidra"
+  git submodule update --recursive
+}
+
+build() {
+  cd ${pkgname}
+  cmake \
+    -B build \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=None \
+    -DBUILD_CUTTER_PLUGIN=ON \
+    -DBUILD_SLASPECS=ON \
+    -DCUTTER_SOURCE_DIR="${srcdir}/cutter"
+  make -C build VERBOSE=1
+}
+
+package() {
+  cd ${pkgname}
+  make -C build DESTDIR="${pkgdir}" install
+  # move shared library into R2_LIBR_PLUGINS
+  r2version=$(r2 -version|grep radare2|sed -E 's/radare2 ([0-9\.]+) .*/\1/')
+  install -d "${pkgdir}/usr/lib/radare2/${r2version}"
+  mv "${pkgdir}"/usr/share/radare2/plugins/*.so -t "${pkgdir}/usr/lib/radare2/${r2version}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list