void-packages/srcpkgs/liberation-fonts-ttf/template

29 lines
1.1 KiB
Bash

# Template file for 'liberation-fonts-ttf'
pkgname=liberation-fonts-ttf
version=2.1.5
revision=2
depends="font-util"
short_desc="Fonts from RedHat with same metrics as Times, Arial and Courier"
maintainer="Orphaned <orphan@voidlinux.org>"
license="OFL-1.1"
homepage="https://github.com/liberationfonts/liberation-fonts"
changelog="https://raw.githubusercontent.com/liberationfonts/liberation-fonts/devel/ChangeLog"
distfiles="https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-${version}.tar.gz"
checksum=7191c669bf38899f73a2094ed00f7b800553364f90e2637010a69c0e268f25d0
font_dirs="/usr/share/fonts/TTF/liberation"
provides="font-liberation-ttf-${version}_${revision}"
replaces="font-liberation-ttf>=0"
do_install() {
vmkdir usr/share/fonts/TTF/liberation
vcopy "*.ttf" usr/share/fonts/TTF/liberation
# install fontconfig files
vinstall ${FILESDIR}/30-0-liberation-mono.conf 644 \
etc/fonts/conf.avail 30-${pkgname}-mono.conf
vinstall ${FILESDIR}/30-0-liberation-sans.conf 644 \
etc/fonts/conf.avail 30-${pkgname}-sans.conf
vinstall ${FILESDIR}/30-0-liberation-serif.conf 644 \
etc/fonts/conf.avail 30-${pkgname}-serif.conf
}