[arch-commits] Commit in r2cutter/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Thu Apr 1 01:02:21 UTC 2021
Date: Thursday, April 1, 2021 @ 01:02:20
Author: anthraxx
Revision: 910764
upgpkg: r2cutter 1:1.12.0-3: adding syntax-highlighting and translation support
Modified:
r2cutter/trunk/PKGBUILD
----------+
PKGBUILD | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-01 00:53:00 UTC (rev 910763)
+++ PKGBUILD 2021-04-01 01:02:20 UTC (rev 910764)
@@ -6,19 +6,22 @@
_gitcommit=86ee0a9caedc9d515d62738d4b33aaa9e346ac2f
pkgver=1.12.0
epoch=1
-pkgrel=2
+pkgrel=3
pkgdesc='Qt and C++ GUI for radare2 reverse engineering framework'
url='https://github.com/radareorg/r2cutter'
arch=('x86_64')
license=('GPL3')
depends=('radare2' 'capstone' 'qt5-base' 'qt5-svg' 'qt5-webengine' 'icu' 'python' 'jupyter'
- 'pyside2' 'python-shiboken2' 'graphviz' 'gcc-libs')
-makedepends=('git' 'cmake' 'shiboken2' 'qt5-tools')
+ 'pyside2' 'python-shiboken2' 'graphviz' 'gcc-libs' 'syntax-highlighting')
+makedepends=('git' 'cmake' 'ninja' 'shiboken2' 'qt5-tools')
optdepends=('r2ghidra: ghidra decompiler plugin')
replaces=('radare2-cutter')
-source=("git+https://github.com/radareorg/r2cutter#commit=${_gitcommit}")
-sha512sums=('SKIP')
-b2sums=('SKIP')
+source=("git+https://github.com/radareorg/r2cutter#commit=${_gitcommit}"
+ "r2cutter-translations::git+https://github.com/rizinorg/cutter-translations")
+sha512sums=('SKIP'
+ 'SKIP')
+b2sums=('SKIP'
+ 'SKIP')
#pkgver() {
# cd r2cutter
@@ -25,6 +28,12 @@
# git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
#}
+prepare() {
+ cd r2cutter
+ git config 'submodule.src/translations.url' "${srcdir}/r2cutter-translations"
+ git submodule update --init src/translations
+}
+
build() {
cd r2cutter/src
cmake -B build \
@@ -35,15 +44,15 @@
-DCUTTER_USE_BUNDLED_RADARE2=OFF \
-DCUTTER_USE_ADDITIONAL_RADARE2_PATHS=OFF \
-DCUTTER_ENABLE_CRASH_REPORTS=OFF \
- -DCUTTER_ENABLE_GRAPHVIZ=ON
- make -C build VERBOSE=1
+ -DCUTTER_ENABLE_GRAPHVIZ=ON \
+ -Wno-dev \
+ -G Ninja
+ ninja -C build
}
package() {
cd r2cutter
- install -Dm 755 src/build/r2cutter -t "${pkgdir}/usr/bin"
- install -Dm 644 src/org.radare.r2cutter.desktop -t "${pkgdir}/usr/share/applications"
- install -Dm 644 src/img/r2cutter.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
+ DESTDIR="${pkgdir}" ninja -C src/build install
install -d "${pkgdir}/usr/share/doc/${pkgname}"
cp -a docs/* "${pkgdir}/usr/share/doc/${pkgname}"
}
More information about the arch-commits
mailing list