[arch-commits] Commit in r2ghidra-dec/repos (2 files)
Levente Polyak
anthraxx at archlinux.org
Fri May 8 21:42:04 UTC 2020
Date: Friday, May 8, 2020 @ 21:42:03
Author: anthraxx
Revision: 625811
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 625810, r2ghidra-dec/trunk/PKGBUILD)
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Copied: r2ghidra-dec/repos/community-staging-x86_64/PKGBUILD (from rev 625810, r2ghidra-dec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-05-08 21:42:03 UTC (rev 625811)
@@ -0,0 +1,62 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=r2ghidra-dec
+_gitcommit=3bf10b2bc94a3a7289723c76e9f02735bb623b56
+_gitcutter=1aad797722f9fc60b80792a4cc02380c9241714a
+pkgver=4.4.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() {
+ mkdir -p ${pkgname}/build
+ cd ${pkgname}/build
+ export CFLAGS+=" ${CPPFLAGS}"
+ export CXXFLAGS+=" ${CPPFLAGS}"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DBUILD_CUTTER_PLUGIN=ON \
+ -DBUILD_SLASPECS=ON \
+ -DCUTTER_SOURCE_DIR="${srcdir}/cutter" \
+ ..
+ make
+}
+
+package() {
+ cd ${pkgname}/build
+ make 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