14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-11-05 08:51:32 +01:00
fantasque-sans/pkg.sh
2017-07-10 18:47:37 +02:00

33 lines
1.3 KiB
Bash
Executable File

#!/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}}
name='fantasque-sans'
version='1.7.1'
desc='A font family with a great monospaced variant for programmers.'
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 \
TTF/FantasqueSansMono-Regular.ttf=/usr/share/fonts/truetype/${name}/ \
TTF/FantasqueSansMono-Bold.ttf=/usr/share/fonts/truetype/${name}/ \
TTF/FantasqueSansMono-Italic.ttf=/usr/share/fonts/truetype/${name}/ \
TTF/FantasqueSansMono-BoldItalic.ttf=/usr/share/fonts/truetype/${name}/ \
OTF/FantasqueSansMono-Regular.otf=/usr/share/fonts/opentype/${name}/ \
OTF/FantasqueSansMono-Bold.otf=/usr/share/fonts/opentype/${name}/ \
OTF/FantasqueSansMono-Italic.otf=/usr/share/fonts/opentype/${name}/ \
OTF/FantasqueSansMono-BoldItalic.otf=/usr/share/fonts/opentype/${name}/ \
LICENSE.txt=/usr/share/doc/${name}/copyright \
README.md=/usr/share/doc/${name}/ \
Specimen=/usr/share/doc/${name}/