14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-12-22 23:41:30 +01:00
fantasque-sans/pkg.sh

29 lines
951 B
Bash
Raw Normal View History

#!/bin/sh
# choose package target based on Distro
case $( lsb_release -si ) in
Ubuntu|Debian) pkg=deb ;;
Fedora|RedHat|SLES) pkg=rpm ;;
esac
# But make it overridable from outside:
pkg=${PKG:-${pkg}}
2014-01-10 16:27:35 +01:00
name='fantasque-sans'
version='1.4'
desc='A font family with a great monospaced variant for programmers.'
2014-01-10 16:27:35 +01:00
url=http://openfontlibrary.org/en/font/fantasque-sans
fpm -s dir -t ${pkg} -a all \
-n ${name}-fonts \
-v ${version} \
--url ${url} \
--description "${desc}" \
--license OFL \
2014-01-10 16:27:35 +01:00
FantasqueSansMono.ttf=/usr/share/fonts/truetype/${name}/ \
FantasqueSansMonoBold.ttf=/usr/share/fonts/truetype/${name}/ \
OTF/FantasqueSansMono.otf=/usr/share/fonts/opentype/${name}/ \
OTF/FantasqueSansMonoBold.otf=/usr/share/fonts/opentype/${name}/ \
OFL.txt=/usr/share/doc/${name}/copyright \
README.md=/usr/share/doc/${name}/ \
Specimen=/usr/share/doc/${name}/