You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libre-baskerville-fonts/SOURCES/get-libre-baskerville.sh

17 lines
418 B

#!/bin/bash
# Get upstream zip and make source tar.gz
ARCHIVE="libre-baskerville-fonts-1.0"
TMPDIR=$(mktemp -d --tmpdir=/var/tmp getlibrebaskerville-XXXXXXXXXX)
[ $? != 0 ] && exit 1
umask 022
pushd "$TMPDIR"
wget -N -O $ARCHIVE.zip https://fonts.google.com/download?family=Libre%20Baskerville
unzip $ARCHIVE.zip -d $ARCHIVE
tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE
popd
mv "$TMPDIR/$ARCHIVE.tar.xz" .
rm -fr "$TMPDIR"