#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build xkbcomp

SRC_DIR=`ls -d $ROOT/$PKG_BUILD`

cd $PKG_BUILD
XKBCOMP="/usr/bin/xkbcomp" \
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --enable-compat-rules \
            --with-xkb-base=$XORG_PATH_XKB \
            --disable-xkbcomp-symlink \
            --with-xkb-rules-symlink=xorg
make

make DESTDIR=$SRC_DIR/.install install
