Date: Saturday, June 12, 2021 @ 01:10:57 Author: anthraxx Revision: 963048
upgpkg: r2ghidra 5.3.0.r6.ge9d8fafe-1 Modified: r2ghidra/trunk/PKGBUILD ----------+ PKGBUILD | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-06-12 01:08:20 UTC (rev 963047) +++ PKGBUILD 2021-06-12 01:10:57 UTC (rev 963048) @@ -1,9 +1,10 @@ # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> pkgname=r2ghidra -_gitcommit=cd769a4e9bfb2d1ab6ca5858dead13b931fcbf7f -pkgver=5.2.1 -pkgrel=2 +_gitcommit=e9d8fafec4e9bec39cddc09c4415efb4da28ba93 +_ghidra_native=9d7f7d1d8aed8d2360e8efe7976ebb2bb1f1b399 +pkgver=5.3.0.r6.ge9d8fafe +pkgrel=1 pkgdesc='Deep ghidra decompiler integration for radare2 and iaito' url='https://github.com/radareorg/r2ghidra' arch=('x86_64') @@ -13,7 +14,7 @@ provides=('radare2-r2ghidra') replaces=('r2ghidra-dec') source=("git+https://github.com/radareorg/r2ghidra#commit=${_gitcommit}" - radare-ghidra::git+https://github.com/radareorg/ghidra.git + "git+https://github.com/radareorg/ghidra-native.git#commit=${_ghidra_native}" git+https://github.com/zeux/pugixml.git) sha512sums=('SKIP' 'SKIP' @@ -21,7 +22,7 @@ pkgver() { cd ${pkgname} - git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git describe --tags --match '5*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { @@ -28,12 +29,15 @@ cd ${pkgname} git submodule init git config submodule."third-party/pugixml".url "${srcdir}/pugixml" - git config submodule."ghidra/ghidra".url "${srcdir}/radare-ghidra" git submodule update --recursive + # reproducible builds + sed '/git clone https/d' -i Makefile + ln -sf "${srcdir}/ghidra-native" ghidra-native } build() { cd ${pkgname} + make ghidra/ghidra/Ghidra cmake \ -B build \ -DCMAKE_INSTALL_PREFIX=/usr \