|
|
@ -17,17 +17,20 @@ termux_step_make_install () { |
|
|
|
SYSTEM_CORE_INCLUDE_TARFILE=$TERMUX_PKG_CACHEDIR/system_core_include_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $SYSTEM_CORE_INCLUDE_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/system/core/+archive/android-$_TAGNAME/include.tar.gz" \ |
|
|
|
$SYSTEM_CORE_INCLUDE_TARFILE |
|
|
|
$SYSTEM_CORE_INCLUDE_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
|
|
|
|
ANDROIDFW_INCLUDE_TARFILE=$TERMUX_PKG_CACHEDIR/androidfw_include_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $ANDROIDFW_INCLUDE_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/frameworks/base/+archive/android-$_TAGNAME/include/androidfw.tar.gz" \ |
|
|
|
$ANDROIDFW_INCLUDE_TARFILE |
|
|
|
$ANDROIDFW_INCLUDE_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
|
|
|
|
ANDROID_BASE_INCLUDE_TARFILE=$TERMUX_PKG_CACHEDIR/android_base_include_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $ANDROID_BASE_INCLUDE_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/system/core/+archive/android-$_TAGNAME/base/include/android-base.tar.gz" \ |
|
|
|
$ANDROID_BASE_INCLUDE_TARFILE |
|
|
|
$ANDROID_BASE_INCLUDE_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
|
|
|
|
local AOSP_INCLUDE_DIR=$TERMUX_PREFIX/include/aosp |
|
|
|
mkdir -p $AOSP_INCLUDE_DIR |
|
|
@ -50,7 +53,8 @@ termux_step_make_install () { |
|
|
|
LIBCUTILS_TARFILE=$TERMUX_PKG_CACHEDIR/libcutils_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $LIBCUTILS_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/system/core/+archive/android-$_TAGNAME/libcutils.tar.gz" \ |
|
|
|
$LIBCUTILS_TARFILE |
|
|
|
$LIBCUTILS_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
tar xf $LIBCUTILS_TARFILE |
|
|
|
patch -p0 < $TERMUX_PKG_BUILDER_DIR/libcutils-patch.txt |
|
|
|
$CXX $CXXFLAGS -isystem $AOSP_INCLUDE_DIR -c -o sockets.o sockets.cpp |
|
|
@ -113,12 +117,14 @@ termux_step_make_install () { |
|
|
|
local LIBUTILS_TARFILE=$TERMUX_PKG_CACHEDIR/libutils_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $LIBUTILS_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/system/core/+archive/android-$_TAGNAME/libutils.tar.gz" \ |
|
|
|
$LIBUTILS_TARFILE |
|
|
|
$LIBUTILS_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
|
|
|
|
local SAFE_IOP_TARFILE=$TERMUX_PKG_CACHEDIR/safe_iop.tar.gz |
|
|
|
test ! -f $SAFE_IOP_TARFILE && termux_download \ |
|
|
|
https://android.googlesource.com/platform/external/safe-iop/+archive/cd76f998688d145235de78ecd5b340d0eac9239d.tar.gz \ |
|
|
|
$SAFE_IOP_TARFILE |
|
|
|
$SAFE_IOP_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
local SAFE_IOP_DIR=$TERMUX_PKG_TMPDIR/safe-iop |
|
|
|
mkdir -p $SAFE_IOP_DIR |
|
|
|
cd $SAFE_IOP_DIR |
|
|
@ -170,7 +176,8 @@ termux_step_make_install () { |
|
|
|
local LIBBASE_TARFILE=$TERMUX_PKG_CACHEDIR/libbase_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $LIBBASE_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/system/core/+archive/android-${_TAGNAME}/base.tar.gz" \ |
|
|
|
$LIBBASE_TARFILE |
|
|
|
$LIBBASE_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
mkdir -p $TERMUX_PKG_SRCDIR/libbase |
|
|
|
cd $TERMUX_PKG_SRCDIR/libbase |
|
|
|
tar xf $LIBBASE_TARFILE |
|
|
@ -202,7 +209,8 @@ termux_step_make_install () { |
|
|
|
LIBZIPARCHIVE_TARFILE=$TERMUX_PKG_CACHEDIR/libziparchive_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $LIBZIPARCHIVE_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/system/core/+archive/android-$_TAGNAME/libziparchive.tar.gz" \ |
|
|
|
$LIBZIPARCHIVE_TARFILE |
|
|
|
$LIBZIPARCHIVE_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
mkdir -p $TERMUX_PKG_SRCDIR/libziparchive |
|
|
|
cd $TERMUX_PKG_SRCDIR/libziparchive |
|
|
|
tar xf $LIBZIPARCHIVE_TARFILE |
|
|
@ -228,7 +236,8 @@ termux_step_make_install () { |
|
|
|
ANDROIDFW_TARFILE=$TERMUX_PKG_CACHEDIR/androidfw_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $ANDROIDFW_TARFILE && termux_download \ |
|
|
|
https://android.googlesource.com/platform/frameworks/base/+archive/android-$_TAGNAME/libs/androidfw.tar.gz \ |
|
|
|
$ANDROIDFW_TARFILE |
|
|
|
$ANDROIDFW_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
mkdir -p $TERMUX_PKG_SRCDIR/androidfw |
|
|
|
cd $TERMUX_PKG_SRCDIR/androidfw |
|
|
|
tar xf $ANDROIDFW_TARFILE |
|
|
@ -261,7 +270,8 @@ termux_step_make_install () { |
|
|
|
AAPT_TARFILE=$TERMUX_PKG_CACHEDIR/aapt_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $AAPT_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/frameworks/base/+archive/android-$_TAGNAME/tools/aapt.tar.gz" \ |
|
|
|
$AAPT_TARFILE |
|
|
|
$AAPT_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
mkdir $TERMUX_PKG_SRCDIR/aapt |
|
|
|
cd $TERMUX_PKG_SRCDIR/aapt |
|
|
|
tar xf $AAPT_TARFILE |
|
|
@ -286,7 +296,8 @@ termux_step_make_install () { |
|
|
|
ZIPALIGN_TARFILE=$TERMUX_PKG_CACHEDIR/zipalign_${_TAGNAME}.tar.gz |
|
|
|
test ! -f $ZIPALIGN_TARFILE && termux_download \ |
|
|
|
"https://android.googlesource.com/platform/build.git/+archive/android-$_TAGNAME/tools/zipalign.tar.gz" \ |
|
|
|
$ZIPALIGN_TARFILE |
|
|
|
$ZIPALIGN_TARFILE \ |
|
|
|
SKIP_CHECKSUM |
|
|
|
mkdir $TERMUX_PKG_SRCDIR/zipalign |
|
|
|
cd $TERMUX_PKG_SRCDIR/zipalign |
|
|
|
tar xf $ZIPALIGN_TARFILE |
|
|
|