-TERMUX_PKG_VERSION=5.0.14
+TERMUX_PKG_VERSION=5.3.2
TERMUX_PKG_HOMEPAGE=http://www.rarlab.com/
TERMUX_PKG_DESCRIPTION="Tool for extracting files from .rar archives"
TERMUX_PKG_SRCURL=http://www.rarlab.com/rar/unrarsrc-${TERMUX_PKG_VERSION}.tar.gz
--- /dev/null
+Patch submitted to dev@rarlab.com on 2015-08-25.
+
+diff -u -r ../unrar/os.hpp ./os.hpp
+--- ../unrar/os.hpp 2015-08-04 06:22:40.000000000 -0400
++++ ./os.hpp 2015-08-25 16:58:59.525380417 -0400
+@@ -160,7 +160,7 @@
+ #define SAVE_LINKS
+ #endif
+
+-#if defined(__linux) && !defined (_ANDROID) || defined(__FreeBSD__)
++#if defined(__linux) && !defined(__ANDROID__) || defined(__FreeBSD__)
+ #include <sys/time.h>
+ #define USE_LUTIMES
+ #endif
+++ /dev/null
-diff -u -r ../unrar/filefn.cpp ./filefn.cpp
---- ../unrar/filefn.cpp 2013-12-01 09:10:14.000000000 +0100
-+++ ./filefn.cpp 2014-02-13 00:16:54.000000000 +0100
-@@ -156,8 +156,8 @@
- GetFilePath(Name,Root,ASIZE(Root));
- char RootA[NM];
- WideToChar(Root,RootA,ASIZE(RootA));
-- struct statvfs sfs;
-- if (statvfs(*RootA!=0 ? RootA:".",&sfs)!=0)
-+ struct statfs sfs;
-+ if (statfs(*RootA!=0 ? RootA:".",&sfs)!=0)
- return 0;
- int64 FreeSize=sfs.f_bsize;
- FreeSize=FreeSize*sfs.f_bavail;
-diff -u -r ../unrar/os.hpp ./os.hpp
---- ../unrar/os.hpp 2013-12-01 09:10:14.000000000 +0100
-+++ ./os.hpp 2014-02-13 00:15:24.000000000 +0100
-@@ -130,7 +130,7 @@
- #include <sys/sysctl.h>
- #endif
- #ifndef SFX_MODULE
-- #include <sys/statvfs.h>
-+ #include <sys/statfs.h>
- #endif
- #if defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined(__APPLE__)
- #endif