[arch-commits] Commit in rz-ghidra/repos (2 files)
Antonio Rojas
arojas at gemini.archlinux.org
Sat Dec 25 12:04:15 UTC 2021
Date: Saturday, December 25, 2021 @ 12:04:15
Author: arojas
Revision: 1083592
archrelease: copy trunk to community-staging-x86_64
Added:
rz-ghidra/repos/community-staging-x86_64/
rz-ghidra/repos/community-staging-x86_64/PKGBUILD
(from rev 1083591, rz-ghidra/trunk/PKGBUILD)
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
Copied: rz-ghidra/repos/community-staging-x86_64/PKGBUILD (from rev 1083591, rz-ghidra/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-25 12:04:15 UTC (rev 1083592)
@@ -0,0 +1,59 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=rz-ghidra
+_gitcommit=81090e68ec17ab4e9c9963c5e15638665c87696c
+_gitcutter=78a9a112099e0d045773d77f4b1166fc3b7d2eef
+pkgver=0.3.0
+pkgrel=2
+pkgdesc='Deep ghidra decompiler integration for rizin and rz-cutter'
+url='https://github.com/rizinorg/rz-ghidra'
+arch=('x86_64')
+license=('LGPL3')
+depends=('rizin' 'glibc')
+makedepends=('git' 'cmake' 'qt5-base')
+source=("git+${url}#commit=${_gitcommit}"
+ "git+https://github.com/rizinorg/cutter#commit=${_gitcutter}"
+ rizin-ghidra::git+https://github.com/rizinorg/ghidra.git
+ git+https://github.com/zeux/pugixml.git)
+sha512sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ git tag -d rz-0.2.0 >/dev/null
+ git describe --tags --match 'rz-*' | sed 's/^rz-//;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}/rizin-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 -j1 DESTDIR="${pkgdir}" install
+ # move shared library into RZ_LIBR_PLUGINS
+ rzversion=$(rizin -version|grep rizin|sed -E 's/rizin ([0-9\.]+) .*/\1/')
+ install -d "${pkgdir}/usr/lib/rizin/${rzversion}"
+ mv "${pkgdir}/usr/share/rizin/plugins"/*.so "${pkgdir}/usr/lib/rizin/${rzversion}"
+ ln -s /usr/lib/rizin/${rzversion} "${pkgdir}/usr/lib/rizin/last"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list