diff --git a/packages/radare2/build.sh b/packages/radare2/build.sh new file mode 100644 index 000000000..13a0533e5 --- /dev/null +++ b/packages/radare2/build.sh @@ -0,0 +1,7 @@ +TERMUX_PKG_HOMEPAGE=http://rada.re +TERMUX_PKG_DESCRIPTION="Advanced Hexadecimal Editor" +TERMUX_PKG_VERSION=0.10.5 +TERMUX_PKG_SRCURL=https://github.com/radare/radare2/archive/$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_FOLDERNAME="radare2-$TERMUX_PKG_VERSION" +TERMUX_PKG_BUILD_IN_SRC="yes" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-compiler=termux-host" diff --git a/packages/radare2/sdb-make.patch b/packages/radare2/sdb-make.patch new file mode 100644 index 000000000..4c481523d --- /dev/null +++ b/packages/radare2/sdb-make.patch @@ -0,0 +1,13 @@ +diff --git a/shlr/Makefile b/shlr/Makefile +index 384ed78..d3bdab1 100644 +--- a/shlr/Makefile ++++ b/shlr/Makefile +@@ -103,7 +103,7 @@ ${SDB_TARGETS}: + @echo + $(MAKE) -C sdb clean + $(MAKE) -C sdb src/sdb_version.h +- $(MAKE) -C sdb/src CC=${HOST_CC} CFLAGS='${HOST_CFLAGS} -fPIC' bin ++ $(MAKE) -C sdb/src CC=${HOST_CC} LDFLAGS='${HOST_LDFLAGS}' CPPFLAGS='' CFLAGS='${HOST_CFLAGS} -fPIC' bin + cp -f sdb/src/sdb${BUILD_EXT_EXE} sdb/src/.sdb${BUILD_EXT_EXE} + @echo + @echo ">>>>>>>>>>>>>>>>"