diff --git a/packages/python/devel/pygobject/build b/packages/python/devel/pygobject/build
deleted file mode 100755
index ce4d7ecceb..0000000000
--- a/packages/python/devel/pygobject/build
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-PYTHON_LIBDIR="`ls -d $SYSROOT_PREFIX/usr/lib/python*`"
-PYTHON_HOST_LIBDIR="`ls -d $ROOT/$TOOLCHAIN/lib/python*`"
-
-cd $PKG_BUILD
-./configure --host=$TARGET_NAME \
- --build=$HOST_NAME \
- --prefix=/usr \
- --sysconfdir=/etc \
- --disable-static \
- --enable-shared \
- --enable-thread \
- --disable-introspection \
-
-make
-$MAKEINSTALL
-
-python -Wi -t -B $PYTHON_HOST_LIBDIR/compileall.py ./pygtk.py -f
-python -Wi -t -B $PYTHON_HOST_LIBDIR/compileall.py ./dsextras.py -f
-python -Wi -t -B $PYTHON_HOST_LIBDIR/compileall.py ./gobject -f
-python -Wi -t -B $PYTHON_HOST_LIBDIR/compileall.py ./glib -f
-python -Wi -t -B $PYTHON_HOST_LIBDIR/compileall.py ./gio -f
diff --git a/packages/python/devel/pygobject/install b/packages/python/devel/pygobject/install
deleted file mode 100755
index 641700d8cf..0000000000
--- a/packages/python/devel/pygobject/install
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# This file is part of OpenELEC - http://www.openelec.tv
-# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
-#
-# OpenELEC is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# OpenELEC is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with OpenELEC. If not, see .
-################################################################################
-
-. config/options $1
-
-PYTHON_LIB_DIR=`ls -d $INSTALL/usr/lib/python*`
-
-mkdir -p $INSTALL/usr/lib
- cp -P $PKG_BUILD/glib/.libs/libpyglib*.so* $INSTALL/usr/lib
-
-mkdir -p $PYTHON_LIB_DIR/site-packages
- cp $PKG_BUILD/pygtk.pyo $PYTHON_LIB_DIR/site-packages
- echo "gtk-2.0" > $PYTHON_LIB_DIR/site-packages/pygtk.pth
-
-mkdir -p $PYTHON_LIB_DIR/site-packages/gtk-2.0
- cp $PKG_BUILD/dsextras.pyo $PYTHON_LIB_DIR/site-packages/gtk-2.0
-
-mkdir -p $PYTHON_LIB_DIR/site-packages/gtk-2.0/gobject
- cp $PKG_BUILD/gobject/.libs/*.so $PYTHON_LIB_DIR/site-packages/gtk-2.0/gobject
- cp $PKG_BUILD/gobject/*.pyo $PYTHON_LIB_DIR/site-packages/gtk-2.0/gobject
-
-mkdir -p $PYTHON_LIB_DIR/site-packages/gtk-2.0/glib
- cp $PKG_BUILD/glib/.libs/_glib.so $PYTHON_LIB_DIR/site-packages/gtk-2.0/glib
- cp $PKG_BUILD/glib/*.pyo $PYTHON_LIB_DIR/site-packages/gtk-2.0/glib
-
-mkdir -p $PYTHON_LIB_DIR/site-packages/gtk-2.0/gio
- cp $PKG_BUILD/gio/.libs/_gio.so $PYTHON_LIB_DIR/site-packages/gtk-2.0/gio
- cp $PKG_BUILD/gio/.libs/unix.so $PYTHON_LIB_DIR/site-packages/gtk-2.0/gio
- cp $PKG_BUILD/gio/*.pyo $PYTHON_LIB_DIR/site-packages/gtk-2.0/gio
diff --git a/packages/python/devel/pygobject/meta b/packages/python/devel/pygobject/package.mk
similarity index 80%
rename from packages/python/devel/pygobject/meta
rename to packages/python/devel/pygobject/package.mk
index 2abd312a32..6a75a6bec6 100644
--- a/packages/python/devel/pygobject/meta
+++ b/packages/python/devel/pygobject/package.mk
@@ -23,12 +23,22 @@ PKG_ARCH="any"
PKG_LICENSE="LGPL"
PKG_SITE="http://www.pygtk.org/"
PKG_URL="http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/$PKG_NAME-$PKG_VERSION.tar.bz2"
-PKG_DEPENDS="Python glib libffi"
-PKG_BUILD_DEPENDS="toolchain Python glib libffi"
+PKG_DEPENDS_TARGET="Python glib libffi"
+PKG_BUILD_DEPENDS_TARGET="toolchain Python glib libffi"
PKG_PRIORITY="optional"
PKG_SECTION="python/devel"
PKG_SHORTDESC="pygobject: The Python bindings for GObject"
PKG_LONGDESC="PyGObject provides a convenient wrapper for the GObject+ library for use in Python programs, and takes care of many of the boring details such as managing memory and type casting. When combined with PyGTK, PyORBit and gnome-python, it can be used to write full featured Gnome applications."
-PKG_IS_ADDON="no"
+PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
+
+PKG_CONFIGURE_OPTS_TARGET="--enable-thread --disable-introspection"
+
+post_makeinstall_target() {
+ find $INSTALL/usr/lib -name *.py -exec rm -rf "{}" ";"
+ find $INSTALL/usr/lib -name *.pyc -exec rm -rf "{}" ";"
+
+ rm -rf $INSTALL/usr/bin
+ rm -rf $INSTALL/usr/share/pygobject
+}
\ No newline at end of file