upgpkg(main/unicorn): 2.0.1

Signed-off-by: Kevin Williams <admin@utermux.dev>
This commit is contained in:
Kevin Williams 2022-11-02 12:20:28 +08:00 committed by Kevin Williams
parent 43708c68ee
commit ab36f3d8ca
2 changed files with 29 additions and 3 deletions

View File

@ -1,10 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://www.unicorn-engine.org/
TERMUX_PKG_DESCRIPTION="Unicorn is a lightweight multi-platform, multi-architecture CPU emulator framework."
TERMUX_PKG_DESCRIPTION="Unicorn is a lightweight multi-platform, multi-architecture CPU emulator framework"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.0.0
TERMUX_PKG_VERSION=2.0.1
TERMUX_PKG_SRCURL=https://github.com/unicorn-engine/unicorn/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=67b445c760e2bbac663e8c8bc410e43311c7fc92df4dfa8d90e06a021d07f634
TERMUX_PKG_SHA256=0c1586f6b079e705d760403141db0ea65d0e22791cf0f43f38172d49497923fd
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BREAKS="unicorn-dev"
TERMUX_PKG_REPLACES="unicorn-dev"

View File

@ -0,0 +1,26 @@
diff -uNr unicorn-2.0.1/tests/unit/endian.h unicorn-2.0.1.mod/tests/unit/endian.h
--- unicorn-2.0.1/tests/unit/endian.h 2022-11-01 23:36:54.000000000 +0800
+++ unicorn-2.0.1.mod/tests/unit/endian.h 2022-11-02 12:35:06.520365981 +0800
@@ -32,7 +32,7 @@
// GNU libc offers the helpful header <endian.h> which defines
// __BYTE_ORDER
-#if defined (__GLIBC__)
+#if defined (__GLIBC__) || defined(ANDROID)
# include <endian.h>
# if (__BYTE_ORDER == __LITTLE_ENDIAN)
# define BOOST_LITTLE_ENDIAN
diff -uNr unicorn-2.0.1/tests/unit/unicorn_test.h unicorn-2.0.1.mod/tests/unit/unicorn_test.h
--- unicorn-2.0.1/tests/unit/unicorn_test.h 2022-11-01 23:36:54.000000000 +0800
+++ unicorn-2.0.1.mod/tests/unit/unicorn_test.h 2022-11-02 12:34:28.160365996 +0800
@@ -5,7 +5,9 @@
#include <stdint.h>
#include <unicorn/unicorn.h>
#include "acutest.h"
-#include "endian.h"
+#ifdef __ANDROID__
+#include <sys/endian.h>
+#endif
// Copied from glibc-2.29