mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
26 lines
553 B
Bash
Executable File
26 lines
553 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. config/options
|
|
|
|
$SCRIPTS/build toolchain
|
|
$SCRIPTS/build Python
|
|
$SCRIPTS/build pyclutter
|
|
$SCRIPTS/build setuptools
|
|
|
|
. config/options.python
|
|
|
|
PYTHON_LIB_DIR=`ls -d $SYSROOT_PREFIX/usr/lib/python*`
|
|
|
|
cd $BUILD/$1*
|
|
|
|
# dirty hack for not existing file
|
|
touch docs/LICENSE
|
|
|
|
$PYTHON setup.py build
|
|
$PYTHON setup.py install -O1 --skip-build --prefix /usr --root .install
|
|
|
|
find .install -name "*.py" -type f -exec rm -rf "{}" ";"
|
|
find .install -name "*.pyo" -type f -exec rm -rf "{}" ";"
|
|
|
|
rm -rf .install/usr/share/{applications,entertainer/docs,man}
|