#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build Python
$SCRIPTS/build pygobject
$SCRIPTS/build dbus-python

. config/options.python

cd $PKG_BUILD

$PYTHON setup.py configure
$PYTHON setup.py build

$PYTHON setup.py install -O1 --skip-build --prefix /usr --root .install

#find .install -name "*.py" -exec rm -rf "{}" ";"
#find .install -name "*.pyo" -exec rm -rf "{}" ";"

#rm -rf .install/usr/bin
rm -rf .install/etc/acpi
rm -rf .install/etc/rc.d
rm -rf .install/etc/xdg
rm -rf .install/usr/share/applications
rm -rf .install/usr/share/doc
rm -rf .install/usr/share/icons
#rm -rf .install/usr/share/locale
rm -rf .install/usr/share/man
rm -rf .install/usr/share/pixmaps
rm -rf .install/var
