# Exit on error:
set -e

wget http://www.x.org/releases/individual/proto/xineramaproto-1.2.1.tar.bz2
tar xf xineramaproto-1.2.1.tar.bz2
cd xineramaproto-1.2.1

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

make install
cd ..
rm -rf xineramaproto-1.2.1
rm xineramaproto-1.2.1.tar.bz2

exit 0
