mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
28 lines
610 B
Bash
Executable File
28 lines
610 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
|
|
|
|
sed -i -e "s%$ROOT/$TOOLCHAIN%/usr%" .install/usr/bin/*
|
|
|
|
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}
|