# Exit on error:
set -e

wget http://www.x.org/releases/individual/lib/xtrans-1.2.7.tar.bz2
tar xf xtrans-1.2.7.tar.bz2
cd xtrans-1.2.7

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

make install
cd ..
rm -rf xtrans-1.2.7
rm xtrans-1.2.7.tar.bz2

exit 0
