Blame SOURCES/getopensans.sh

e4163e
#!/bin/bash
e4163e
# Get upstream zip and make source tar.gz
e4163e
e4163e
ARCHIVE="open-sans-fonts-1.10"
e4163e
TMPDIR=$(mktemp -d --tmpdir=/var/tmp getopensans-XXXXXXXXXX)
e4163e
[ $? != 0 ] && exit 1
e4163e
umask 022
e4163e
pushd "$TMPDIR"
e4163e
e4163e
wget -N -O $ARCHIVE.zip http://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ
e4163e
unzip $ARCHIVE.zip -d $ARCHIVE
e4163e
tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE
e4163e
e4163e
popd
e4163e
mv "$TMPDIR/$ARCHIVE.tar.xz" .
e4163e
rm -fr "$TMPDIR"