mtools: New package
authorVladimir Serbinenko <phcoder@google.com>
Thu, 3 Aug 2017 01:58:27 +0000 (03:58 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 10 Aug 2017 00:11:26 +0000 (02:11 +0200)
This is set of tools used to manipulate FAT images in userspace.

packages/mtools/build.sh [new file with mode: 0644]
packages/mtools/sysinc.patch [new file with mode: 0644]

diff --git a/packages/mtools/build.sh b/packages/mtools/build.sh
new file mode 100644 (file)
index 0000000..04fb235
--- /dev/null
@@ -0,0 +1,7 @@
+TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/mtools/
+TERMUX_PKG_DESCRIPTION="Tool for manipulating FAT images."
+TERMUX_PKG_VERSION=4.0.18
+TERMUX_PKG_SRCURL=ftp://ftp.gnu.org/gnu/mtools/mtools-${TERMUX_PKG_VERSION}.tar.bz2
+TERMUX_PKG_SHA256=59e9cf80885399c4f229e5d87e49c0c2bfeec044e1386d59fcd0b0aead6b2f85
+TERMUX_PKG_DEPENDS="libandroid-support"
+
diff --git a/packages/mtools/sysinc.patch b/packages/mtools/sysinc.patch
new file mode 100644 (file)
index 0000000..57f1709
--- /dev/null
@@ -0,0 +1,13 @@
+Change UNUSED macro to a more modern equivalent to prevent clang from choking.
+
+--- tmp/sysincludes.h  2017-08-02 00:55:33.321338244 +0200
++++ mtools/src/sysincludes.h   2017-08-02 00:55:39.884624033 +0200
+@@ -103,7 +103,7 @@
+ # define PACKED __attribute__ ((packed))
+ # if __GNUC__ == 2 && __GNUC_MINOR__ > 6 || __GNUC__ >= 3
+ /* gcc 2.6.3 doesn't have "unused" */         /* mool */
+-#  define UNUSED(x) x __attribute__ ((unused));x
++#  define UNUSED(x) x __attribute__ ((unused))
+ #  define UNUSEDP __attribute__ ((unused))
+ # else
+ #  define UNUSED(x) x