Github messages for voidlinux
 help / color / mirror / Atom feed
From: phirecc <phirecc@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: r2ghidra-dec-4.5.0
Date: Thu, 27 Aug 2020 15:59:24 +0200	[thread overview]
Message-ID: <20200827135924.PNEhizTAvhLhsX2ZpN9rNEwZHVUkW4sJQnJqlLX2_EM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24453@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

There is an updated pull request by phirecc against master on the void-packages repository

https://github.com/phirecc/void-packages master
https://github.com/void-linux/void-packages/pull/24453

New package: r2ghidra-dec-4.5.0
See [Issue for Cutter](https://github.com/void-linux/void-packages/issues/21159) but it is instead packaged seperate, like arch does it ([PKGBUILD](https://github.com/archlinux/svntogit-community/blob/packages/r2ghidra-dec/trunk/PKGBUILD)).
The `11-pkglint-elf-in-usrshare.sh` post-install hook fails, but radare2 expects plugins in `/usr/share/radare2/plugins` and Cutter expects them in `/usr/share/RadareOrg/Cutter/plugins`, with the only alternative being `~/.local`, as far as I'm aware.

A patch file from https://github.com/void-linux/void-packages/pull/24453.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-24453.patch --]
[-- Type: text/x-diff, Size: 2195 bytes --]

From 66683ec57fc64e7e16b4bc83ba63d2ab879f223f Mon Sep 17 00:00:00 2001
From: phire <me@phire.cc>
Date: Mon, 24 Aug 2020 13:38:13 +0200
Subject: [PATCH] New package: r2ghidra-dec-4.5.0

---
 srcpkgs/r2ghidra-dec/template | 37 +++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 srcpkgs/r2ghidra-dec/template

diff --git a/srcpkgs/r2ghidra-dec/template b/srcpkgs/r2ghidra-dec/template
new file mode 100644
index 00000000000..ef1f916f508
--- /dev/null
+++ b/srcpkgs/r2ghidra-dec/template
@@ -0,0 +1,37 @@
+# Template file for 'r2ghidra-dec'
+_cutterversion=1.11.1
+_ghidracommit=6c10f36f06468f866188cccf960c019779fb9028
+_pugixmlcommit=fdf02957533645069bbea7cd2ed85a3014b42cf3
+pkgname=r2ghidra-dec
+version=4.5.0
+revision=1
+archs="x86_64*"
+build_style=cmake
+configure_args="-DBUILD_CUTTER_PLUGIN=ON \
+	-DCUTTER_SOURCE_DIR=${XBPS_BUILDDIR}/cutter-${_cutterversion}"
+ignore_elf_files="/usr/share/RadareOrg/Cutter/plugins/native/libr2ghidra_cutter.so"
+hostmakedepends="pkg-config cmake bison flex"
+makedepends="radare2 qt5-devel capstone-devel"
+depends="radare2"
+short_desc="Deep ghidra decompiler integration for radare2 and Cutter"
+maintainer="phire <me@phire.cc>"
+license="LGPL-3.0-only"
+homepage="https://github.com/radareorg/r2ghidra-dec"
+distfiles="https://github.com/radareorg/r2ghidra-dec/archive/v${version}.tar.gz
+ https://github.com/radareorg/cutter/archive/v${_cutterversion}.tar.gz
+ https://github.com/thestr4ng3r/ghidra/archive/${_ghidracommit}.tar.gz
+ https://github.com/zeux/pugixml/archive/${_pugixmlcommit}.tar.gz"
+checksum="cca6ed8bc1bf4626bcf8e1fab65e85d1320635f5b5f6903b22d66e376faf5108
+ 07ed1b71a7f4ea8a99aab56839893c1d59aabbf5c8a4ffbd6ecf36bbb00f6ab3
+ f94d81919bddc5f1095250e02b1fdf57acba15e68c818d6c33088875e6759d21
+ cad9cf37ec54bb98b40afc03cd5e2fdc78682fe0f235fd02c575d9b4d9443b83"
+
+post_extract() {
+	mv -T ${XBPS_BUILDDIR}/ghidra-${_ghidracommit} ${wrksrc}/ghidra/ghidra
+	mv -T ${XBPS_BUILDDIR}/pugixml-${_pugixmlcommit} ${wrksrc}/third-party/pugixml
+}
+
+post_install() {
+	mkdir -p ${DESTDIR}/usr/lib/radare2/${version}
+	mv ${DESTDIR}/usr/share/radare2/plugins/*.so ${DESTDIR}/usr/lib/radare2/${version}
+}

  parent reply	other threads:[~2020-08-27 13:59 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-24 11:52 [PR PATCH] " phirecc
2020-08-24 12:07 ` [PR REVIEW] " ericonr
2020-08-24 12:07 ` ericonr
2020-08-24 13:10 ` [PR PATCH] [Updated] " phirecc
2020-08-24 13:11 ` [PR REVIEW] " phirecc
2020-08-24 13:13 ` phirecc
2020-08-24 13:15 ` phirecc
2020-08-24 13:17 ` ericonr
2020-08-24 13:19 ` [PR PATCH] [Updated] " phirecc
2020-08-24 13:20 ` phirecc
2020-08-24 13:21 ` [PR PATCH] [Updated] " phirecc
2020-08-24 13:23 ` ericonr
2020-08-24 13:29 ` phirecc
2020-08-24 16:00 ` [PR PATCH] [Updated] " phirecc
2020-08-24 16:01 ` phirecc
2020-08-25 22:11 ` [PR PATCH] [Updated] " phirecc
2020-08-26 22:24 ` phirecc
2020-08-26 22:36 ` phirecc
2020-08-27  4:18 ` [PR REVIEW] " fosslinux
2020-08-27  4:19 ` fosslinux
2020-08-27  4:19 ` fosslinux
2020-08-27  4:19 ` fosslinux
2020-08-27  4:19 ` fosslinux
2020-08-27 10:25 ` ericonr
2020-08-27 10:35 ` fosslinux
2020-08-27 13:59 ` phirecc [this message]
2020-08-27 14:00 ` phirecc
2020-08-27 18:15 ` Chocimier
2020-08-28 21:42 ` [PR PATCH] [Updated] " phirecc
2022-04-18  2:12 ` github-actions
2022-05-02  2:15 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200827135924.PNEhizTAvhLhsX2ZpN9rNEwZHVUkW4sJQnJqlLX2_EM@z \
    --to=phirecc@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).