mirror of
https://codeberg.org/hyperreal/better_fonts
synced 2024-11-01 08:33:08 +01:00
17 lines
418 B
Bash
Executable File
17 lines
418 B
Bash
Executable File
#!/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"
|