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

30 lines
1012 B
Bash

# Template file for 'liberation-fonts-ttf'
pkgname=liberation-fonts-ttf
version=2.00.4
revision=2
noarch=yes
makedepends="font-util xbps-triggers"
depends="${makedepends}"
short_desc="TrueType fonts from RedHat"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="OFL-1.1"
homepage="https://github.com/liberationfonts/liberation-fonts"
distfiles="https://github.com/liberationfonts/liberation-fonts/files/2579281/liberation-fonts-ttf-${version}.tar.gz"
checksum=c40e95fc5e0ecb73d4be565ae2afc1114e2bc7dc5253e00ee92d8fd6cc4adf45
font_dirs="/usr/share/fonts/TTF"
do_install() {
vmkdir usr/share/fonts/TTF
install -m644 *.ttf ${DESTDIR}/usr/share/fonts/TTF
# 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
vlicense LICENSE
}