# Exit on error:
set -e

wget http://cairographics.org/releases/pixman-0.30.2.tar.gz
tar xf pixman-0.30.2.tar.gz
cd pixman-0.30.2

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

make install
cd ..
rm -rf pixman-0.30.2
rm pixman-0.30.2.tar.gz

exit 0
