diff options
author | kermitdafrog8 <42719716+kermitdafrog8@users.noreply.github.com> | 2022-05-11 22:41:07 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-21 08:25:05 +0700 |
commit | 6022d411cbf5757090d7e84c8b6561565e6d2841 (patch) | |
tree | 5ccb6d450ebc93bb4a192d9a10d726c189dca8e5 /development/REDasm | |
parent | 7050dfd4a3f17bc50edfc9b5c313bea76bb3ac71 (diff) | |
download | slackbuilds-6022d411cbf5757090d7e84c8b6561565e6d2841.tar.gz |
development/REDasm: Fix offline build.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/REDasm')
-rw-r--r-- | development/REDasm/README | 8 | ||||
-rw-r--r-- | development/REDasm/REDasm.SlackBuild | 8 | ||||
-rw-r--r-- | development/REDasm/REDasm.info | 10 | ||||
-rw-r--r-- | development/REDasm/doinst.sh | 61 |
4 files changed, 20 insertions, 67 deletions
diff --git a/development/REDasm/README b/development/REDasm/README index 25be18efe2..185398f5fd 100644 --- a/development/REDasm/README +++ b/development/REDasm/README @@ -1 +1,7 @@ -REDasm is a cross platform disassembler with a modern codebase +REDasm is a cross platform disassembler with a modern codebase useful +from the hobbyist to the professional reverse engineer. +All features are provided by LibREDasm which loads plugins developed +in C, C++ and Python3 (you can also support new languages if you want!) +and an user friendly Qt frontend. + +Home: https://redasm.io/ diff --git a/development/REDasm/REDasm.SlackBuild b/development/REDasm/REDasm.SlackBuild index 8c0f9625d2..1f84d60236 100644 --- a/development/REDasm/REDasm.SlackBuild +++ b/development/REDasm/REDasm.SlackBuild @@ -68,6 +68,10 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +mkdir -p $TMP/$PRGNAM-$VERSION/libs/KDDockWidgets +mkdir -p $TMP/$PRGNAM-$VERSION/libs/json +tar -C $TMP/$PRGNAM-$VERSION/libs/KDDockWidgets --strip-components=1 -x -f $CWD/KDDockWidgets-1.4.0.tar.gz +tar -C $TMP/$PRGNAM-$VERSION/libs/json --strip-components=1 -x -f $CWD/json-3.10.5.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -82,8 +86,8 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DMAN_INSTALL_DIR=/usr/man \ + -DFETCHCONTENT_FULLY_DISCONNECTED=ON \ + -DFETCHCONTENT_SOURCE_DIR_KDDOCKWIDGETES=$TMP/$PRGNAM-$VERSION/libs/KDDockWidgets \ -DKDDockWidgets_DOCS=ON \ -DCAPSTONE_SPARC_SUPPORT=ON \ -DCAPSTONE_PPC_SUPPORT=ON \ diff --git a/development/REDasm/REDasm.info b/development/REDasm/REDasm.info index 65cf719f3b..b6dff89359 100644 --- a/development/REDasm/REDasm.info +++ b/development/REDasm/REDasm.info @@ -3,8 +3,12 @@ VERSION="3.0.0.beta5" HOMEPAGE="https://redasm.io/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/kermitdafrog8/REDasm/releases/download/v3.0.0.beta5/REDasm-3.0.0.beta5.tar.gz" -MD5SUM_x86_64="59b34f51bce714308f9cd150067183e4" -REQUIRES="" +DOWNLOAD_x86_64="https://github.com/kermitdafrog8/REDasm/releases/download/v3.0.0.beta5/REDasm-3.0.0.beta5.tar.gz \ + https://github.com/kermitdafrog8/REDasm/releases/download/v3.0.0.beta5/json-3.10.5.tar.gz \ + https://github.com/kermitdafrog8/KDDockWidgets/releases/download/v1.4.0/KDDockWidgets-1.4.0.tar.gz" +MD5SUM_x86_64="59b34f51bce714308f9cd150067183e4 \ + 5b946f7d892fa55eabec45e76a20286b \ + 2fe65788d10ef1cb3919ffd50c9be5a0" +REQUIRES="spdlog" MAINTAINER="Christopher Luck" EMAIL="kermitdafrog8@gmail.com" diff --git a/development/REDasm/doinst.sh b/development/REDasm/doinst.sh index a7c015b89b..5fb28930db 100644 --- a/development/REDasm/doinst.sh +++ b/development/REDasm/doinst.sh @@ -1,64 +1,3 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -schema_install() { - SCHEMA="$1" - GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \ - chroot . gconftool-2 --makefile-install-rule \ - /etc/gconf/schemas/$SCHEMA \ - 1>/dev/null -} - -schema_install blah.schemas -preserve_perms etc/rc.d/rc.INIT.new -config etc/configfile.new - if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi - -if [ -x /usr/bin/update-mime-database ]; then - /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 -fi - -# If other icon themes are installed, then add to/modify this as needed -if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then - if [ -x /usr/bin/gtk-update-icon-cache ]; then - /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 - fi -fi - -if [ -e usr/share/glib-2.0/schemas ]; then - if [ -x /usr/bin/glib-compile-schemas ]; then - /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1 - fi -fi - -# If needed -- be sure to sed @LIBDIR@ inside the build script -chroot . /usr/bin/gio-querymodules @LIBDIR@/gio/modules/ 1> /dev/null 2> /dev/null - -if [ -x /usr/bin/install-info ]; then - chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/blah.gz 2> /dev/null -fi - |