void-packages/srcpkgs/source-sans-pro/template

23 lines
802 B
Bash

# Template file for 'source-sans-pro'
pkgname=source-sans-pro
version=2.045
revision=1
_relver="2.045R-ro/1.095R-it"
noarch=yes
wrksrc="source-sans-pro-${_relver/\//-}"
depends="font-util"
short_desc="Sans serif font family for user interface environments"
maintainer="WantToHelp <ghostinthecsh@gmail.com>"
license="OFL-1.1"
homepage="https://adobe-fonts.github.io/source-sans-pro/"
distfiles="https://github.com/adobe-fonts/source-sans-pro/archive/${_relver}.tar.gz"
checksum=01e78d7ff451545ff1eec6cf14b28f62135e430a7ba80d74a90efd5334fef7eb
font_dirs="/usr/share/fonts/OTF /usr/share/fonts/TTF"
do_install() {
vmkdir usr/share/fonts/TTF
vmkdir usr/share/fonts/OTF
install -m644 ${wrksrc}/TTF/*.ttf ${DESTDIR}/usr/share/fonts/TTF
install -m644 ${wrksrc}/OTF/*.otf ${DESTDIR}/usr/share/fonts/OTF
}