# Exit on error:
set -e

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

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

make install
cd ..
rm -rf fixesproto-5.0
rm fixesproto-5.0.tar.bz2

exit 0
