2019-02-26 21:35:27 +01:00
|
|
|
termux_setup_cmake() {
|
2019-04-18 00:24:46 +02:00
|
|
|
local TERMUX_CMAKE_MAJORVESION=3.14
|
2019-05-18 16:07:08 +02:00
|
|
|
local TERMUX_CMAKE_MINORVERSION=4
|
2019-02-26 21:35:27 +01:00
|
|
|
local TERMUX_CMAKE_VERSION=$TERMUX_CMAKE_MAJORVESION.$TERMUX_CMAKE_MINORVERSION
|
|
|
|
local TERMUX_CMAKE_TARNAME=cmake-${TERMUX_CMAKE_VERSION}-Linux-x86_64.tar.gz
|
|
|
|
local TERMUX_CMAKE_TARFILE=$TERMUX_PKG_TMPDIR/$TERMUX_CMAKE_TARNAME
|
|
|
|
local TERMUX_CMAKE_FOLDER=$TERMUX_COMMON_CACHEDIR/cmake-$TERMUX_CMAKE_VERSION
|
|
|
|
if [ ! -d "$TERMUX_CMAKE_FOLDER" ]; then
|
|
|
|
termux_download https://cmake.org/files/v$TERMUX_CMAKE_MAJORVESION/$TERMUX_CMAKE_TARNAME \
|
|
|
|
"$TERMUX_CMAKE_TARFILE" \
|
2019-05-18 16:07:08 +02:00
|
|
|
9f414df8e432c4a143c2d6d81e170581badba8d89df1cf8944735b9122765c50
|
2019-02-26 21:35:27 +01:00
|
|
|
rm -Rf "$TERMUX_PKG_TMPDIR/cmake-${TERMUX_CMAKE_VERSION}-Linux-x86_64"
|
|
|
|
tar xf "$TERMUX_CMAKE_TARFILE" -C "$TERMUX_PKG_TMPDIR"
|
|
|
|
mv "$TERMUX_PKG_TMPDIR/cmake-${TERMUX_CMAKE_VERSION}-Linux-x86_64" \
|
|
|
|
"$TERMUX_CMAKE_FOLDER"
|
|
|
|
fi
|
|
|
|
export PATH=$TERMUX_CMAKE_FOLDER/bin:$PATH
|
|
|
|
export CMAKE_INSTALL_ALWAYS=1
|
|
|
|
}
|