Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion common-files/audit-and-repair-wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
# C++ runtime library
"libc++_shared.so",
# Termux essentials
"libandroid-support.so", "libtermux-exec.so", "libcurl.so", "libiconv.so",
"libandroid-support.so", "libtermux-exec.so", "libiconv.so",
"libexpat.so.1", "libz.so.1", "liblzma.so.5", "libbz2.so.1.0",
"libssl.so.3", "libcrypto.so.3",
"libcurl.so", "libcares.so", "libnghttp2.so", "libnghttp3.so", "libssh2.so",
# libpython* libraries
"libpython3.so",
"libpython3.7m.so.1.0", "libpython3.8.so.1.0", "libpython3.9.so.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ TERMUX_PYTHON_VERSION=3.11
TERMUX_PYTHON_CROSSENV_PREFIX=$TERMUX_PKG_BUILDDIR/python${TERMUX_PYTHON_VERSION/./}-crossenv-prefix-$TERMUX_ARCH
TUR_AUTO_AUDIT_WHEEL=true
TUR_AUTO_BUILD_WHEEL=false
TUR_LIB_LICENSE_JSON="$TERMUX_PKG_BUILDER_DIR/licenses.json"

source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh

Expand Down Expand Up @@ -76,7 +77,7 @@ termux_step_configure() {
TERMUX_PKG_SRCDIR+="/cmake-source"
mkdir -p cmake-build && cd cmake-build
termux_step_configure_cmake
ninja -j $TERMUX_MAKE_PROCESSES
ninja -j $TERMUX_PKG_MAKE_PROCESSES
ninja -j 1 install
popd # cmake-source

Expand All @@ -90,11 +91,16 @@ termux_step_make_install() {
-DBUILD_CMAKE_FROM_SOURCE:BOOL=OFF \
-DRUN_CMAKE_TEST:BOOL=OFF \
-DCMakeProject_BINARY_DISTRIBUTION_DIR="$TERMUX_PREFIX/opt/cmake-wheel-dist"

# Convert it to a generic wheel
mv ./dist/cmake-$TERMUX_PKG_VERSION-cp311-cp311-linux_$TERMUX_ARCH.whl \
./dist/cmake-$TERMUX_PKG_VERSION-py3-none-linux_$TERMUX_ARCH.whl
}

tur_install_wheel_license() {
local _lib
for _lib in libarchive jsoncpp libnghttp2 rhash libssh2 libuv libxml2; do
cp $TERMUX_PREFIX/share/doc/$_lib/LICENSE $_lib-LICENSE
done
cp $TERMUX_PREFIX/share/doc/libarchive/copyright libarchive-LICENSE
cp $TERMUX_PREFIX/share/doc/jsoncpp/copyright jsoncpp-LICENSE
cp $TERMUX_PREFIX/share/doc/rhash/copyright rhash-LICENSE
cp $TERMUX_PREFIX/share/doc/libuv/LICENSE libuv-LICENSE
cp $TERMUX_PREFIX/share/doc/libxml2/copyright libxml2-LICENSE
}
47 changes: 47 additions & 0 deletions tur-pypi-generic/python3.11-cmake/licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"name": "libarchive",
"libs": [
"libarchive"
],
"licenses": [
"libarchive-LICENSE"
]
},
{
"name": "jsoncpp",
"libs": [
"libjsoncpp"
],
"licenses": [
"jsoncpp-LICENSE"
]
},
{
"name": "rhash",
"libs": [
"librhash"
],
"licenses": [
"rhash-LICENSE"
]
},
{
"name": "libuv",
"libs": [
"libuv"
],
"licenses": [
"libuv-LICENSE"
]
},
{
"name": "libxml2",
"libs": [
"libxml2"
],
"licenses": [
"libxml2-LICENSE"
]
}
]