#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build udev
$SCRIPTS/build glib
$SCRIPTS/build dbus
$SCRIPTS/build dbus-glib
$SCRIPTS/build polkit

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --datadir=/usr/share \
            --libexecdir=/usr/lib/upower \
            --localstatedir=/var \
            --disable-static \
            --enable-shared \
            --with-backend=linux \
            --disable-man-pages \
            --disable-gtk-doc \
            --enable-gtk-doc-html \
            --enable-gtk-doc-pdf \
            --disable-nls \

make

$MAKEINSTALL
