Browse Source

mtools: New package

This is set of tools used to manipulate FAT images in userspace.
android-5
Vladimir Serbinenko 8 years ago
committed by Fredrik Fornwall
parent
commit
7cb271a13d
  1. 7
      packages/mtools/build.sh
  2. 13
      packages/mtools/sysinc.patch

7
packages/mtools/build.sh

@ -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"

13
packages/mtools/sysinc.patch

@ -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
Loading…
Cancel
Save