[arch-commits] Commit in rz-ghidra/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Aug 3 21:10:47 UTC 2022
Date: Wednesday, August 3, 2022 @ 21:10:47
Author: arojas
Revision: 1260159
upgpkg: rz-ghidra 0.4.0-1
Remove manual install handling, upstream uses sane paths now.
Modified:
rz-ghidra/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-03 20:58:34 UTC (rev 1260158)
+++ PKGBUILD 2022-08-03 21:10:47 UTC (rev 1260159)
@@ -1,23 +1,23 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=rz-ghidra
-_gitcommit=81090e68ec17ab4e9c9963c5e15638665c87696c
-_gitcutter=78a9a112099e0d045773d77f4b1166fc3b7d2eef
-pkgver=0.3.0
-pkgrel=3
+_gitcommit=e70aa0f68310f18620153eed57b27fdfb9ba3018
+_gitcutter=7eb4311c2be2c0e5e6bcd098abf06beda2e96519
+_gitghidra=d87905747fe38d2dcd7492ed2e83bbf438b156d3
+pkgver=0.4.0
+pkgrel=1
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')
+makedepends=('git' 'cmake' 'qt5-base' 'rz-cutter')
source=("git+${url}#commit=${_gitcommit}"
"git+https://github.com/rizinorg/cutter#commit=${_gitcutter}"
- rizin-ghidra::git+https://github.com/rizinorg/ghidra.git
+# rizin-ghidra::git+https://github.com/rizinorg/ghidra.git
git+https://github.com/zeux/pugixml.git)
sha512sums=('SKIP'
'SKIP'
- 'SKIP'
'SKIP')
pkgver() {
@@ -27,6 +27,10 @@
}
prepare() {
+# pinned commit in submodule is not avilable in any branch
+ git clone https://github.com/rizinorg/ghidra.git rizin-ghidra
+ ( cd rizin-ghidra && git pull origin master && git pull origin $_gitghidra --rebase )
+
cd ${pkgname}
git submodule init
git config submodule."third-party/pugixml".url "${srcdir}/pugixml"
@@ -42,7 +46,8 @@
-DCMAKE_BUILD_TYPE=None \
-DBUILD_CUTTER_PLUGIN=ON \
-DBUILD_SLASPECS=ON \
- -DCUTTER_SOURCE_DIR="${srcdir}/cutter"
+ -DCUTTER_SOURCE_DIR="${srcdir}/cutter" \
+ -DCUTTER_INSTALL_PLUGDIR=/usr/lib/rizin/cutter/plugins/native
make -C build VERBOSE=1
}
@@ -49,11 +54,6 @@
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