mirror of
https://github.com/belluzj/fantasque-sans.git
synced 2024-12-22 15:31:31 +01:00
A script to create Deb and RPM packages
use fpm[1] to create either rpm or deb packages, based on the platform we're working on. This is overridable by the environment variable PKG. This pckage contains both TTF and OTF fonts, as well as the documentation. Currently the version needs to be bumped. It would be better if that was read from metadata.
This commit is contained in:
parent
8baaaf7fe2
commit
5219b98689
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
*.zip
|
*.zip
|
||||||
|
*.deb
|
||||||
|
*.rpm
|
||||||
*~
|
*~
|
||||||
|
|
28
pkg.sh
Executable file
28
pkg.sh
Executable file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/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='cosmic-sans-neue'
|
||||||
|
version='1.2.1'
|
||||||
|
desc='A font family with a great monospaced variant for programmers.'
|
||||||
|
url=http://openfontlibrary.org/en/font/cosmic-sans-neue-mono
|
||||||
|
|
||||||
|
fpm -s dir -t ${pkg} -a all \
|
||||||
|
-n ${name}-fonts \
|
||||||
|
-v ${version} \
|
||||||
|
--url ${url} \
|
||||||
|
--description "${desc}" \
|
||||||
|
--license OFL \
|
||||||
|
CosmicSansNeueMono.ttf=/usr/share/fonts/truetype/${name}/ \
|
||||||
|
CosmicSansNeueMonoBold.ttf=/usr/share/fonts/truetype/${name}/ \
|
||||||
|
OTF/CosmicSansNeueMono.otf=/usr/share/fonts/opentype/${name}/ \
|
||||||
|
OTF/CosmicSansNeueMonoBold.otf=/usr/share/fonts/opentype/${name}/ \
|
||||||
|
OFL.txt=/usr/share/doc/${name}/copyright \
|
||||||
|
README.md=/usr/share/doc/${name}/ \
|
||||||
|
Specimen=/usr/share/doc/${name}/
|
Loading…
Reference in New Issue
Block a user