# Depends on static-xorg-server
# Depends on static-libudev

# Exit on error:
set -e

wget http://www.x.org/releases/individual/driver/xf86-input-evdev-2.8.2.tar.bz2
tar xf xf86-input-evdev-2.8.2.tar.bz2
cd xf86-input-evdev-2.8.2

PKG_CONFIG=/static/bin/pkg-config \
    CC=/static/bin/musl-gcc \
    LDFLAGS='-s -L/static/lib -static -static-libgcc' \
    ./configure --prefix=/static

make install
cd ..
rm -rf xf86-input-evdev-2.8.2
rm xf86-input-evdev-2.8.2.tar.bz2

exit 0
