# Depends on static-python2

# Exit on error:
set -e

wget http://xcb.freedesktop.org/dist/xcb-proto-1.9.tar.bz2
tar xf xcb-proto-1.9.tar.bz2
cd xcb-proto-1.9

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

make install
cd ..
rm -rf xcb-proto-1.9
rm xcb-proto-1.9.tar.bz2

exit 0
