# Depends on python2
# Depends on libxml2

# Exit on error:
set -e

wget ftp://xmlsoft.org/libxslt/libxslt-1.1.28.tar.gz
tar xf libxslt-1.1.28.tar.gz
cd libxslt-1.1.28

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

make install
cd ..
rm -rf libxslt-1.1.28
rm libxslt-1.1.28.tar.gz

exit 0
