# Exit on error:
set -e

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

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

make install
cd ..
rm -rf fontsproto-2.1.2
rm fontsproto-2.1.2.tar.bz2

exit 0
