d4f43cb43a
Also: - update font metadata in pre_build().
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
# Template file for 'liberation-fonts-ttf'
|
|
pkgname=liberation-fonts-ttf
|
|
version=2.1.5
|
|
revision=1
|
|
wrksrc=${pkgname%-*}-${version}
|
|
build_style=gnu-makefile
|
|
hostmakedepends="fontforge fonttools"
|
|
depends="font-util"
|
|
short_desc="TrueType fonts from RedHat"
|
|
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/archive/${version}.tar.gz"
|
|
checksum=9a823ccb33c8a8a865e84b982bcdc44d03ba4914adb91e6000df035dc0e55936
|
|
font_dirs="/usr/share/fonts/TTF"
|
|
|
|
pre_build() {
|
|
make versionupdate
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/share/fonts/TTF
|
|
install -m644 ${pkgname}-${version}/*.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
|
|
}
|