# Exit on error:
set -e

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

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

make install
cd ..
rm -rf renderproto-0.11.1
rm renderproto-0.11.1.tar.bz2

exit 0
