diff --git a/packages/libsndfile/build.sh b/packages/libsndfile/build.sh index 75d0f622b..46abb33f7 100644 --- a/packages/libsndfile/build.sh +++ b/packages/libsndfile/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://www.mega-nerd.com/libsndfile TERMUX_PKG_DESCRIPTION="Library for reading/writing audio files" # Use a git master snapshot until 1.0.29 is released: TERMUX_PKG_VERSION=1.0.29~pre1 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=https://github.com/erikd/libsndfile/archive/826d5296da54c016e3cb0f7f00de3b9e295b9c4a.zip TERMUX_PKG_SHA256=84651201a8468c448f1fd172a48ccf47f3761d23fd0f59bcaaf908050e9eeb7c TERMUX_PKG_DEPENDS="libflac, libvorbis" diff --git a/packages/libsndfile/tmpdir.patch b/packages/libsndfile/tmpdir.patch new file mode 100644 index 000000000..e47837cb5 --- /dev/null +++ b/packages/libsndfile/tmpdir.patch @@ -0,0 +1,12 @@ +diff -uNr libsndfile/src/common.c libsndfile.mod/src/common.c +--- libsndfile/src/common.c 2017-10-31 10:30:54.000000000 +0200 ++++ libsndfile.mod/src/common.c 2018-06-19 17:08:45.344367164 +0300 +@@ -1730,7 +1730,7 @@ + tmpdir = getenv ("TEMP") ; + else + { tmpdir = getenv ("TMPDIR") ; +- tmpdir = tmpdir == NULL ? "/tmp" : tmpdir ; ++ tmpdir = tmpdir == NULL ? "@TERMUX_PREFIX@/tmp" : tmpdir ; + } ; + + if (tmpdir && access (tmpdir, R_OK | W_OK | X_OK) == 0)