liberation-fonts-ttf: provides font-liberation-ttf

Fix: #42873
This commit is contained in:
Đoàn Trần Công Danh 2023-03-20 08:54:05 +07:00
parent a56cfabe55
commit 60aaaa2f7c
2 changed files with 9 additions and 30 deletions

View file

@ -1,17 +0,0 @@
# Template file for 'font-liberation-ttf'
pkgname=font-liberation-ttf
version=2.1.5
revision=1
depends="font-util"
short_desc="Fonts with same metrics as Times, Arial and Courier"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/liberationfonts/liberation-fonts"
distfiles="https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-${version}.tar.gz"
checksum=7191c669bf38899f73a2094ed00f7b800553364f90e2637010a69c0e268f25d0
font_dirs="/usr/share/fonts/TTF/liberation"
do_install() {
vmkdir usr/share/fonts/TTF/liberation
vcopy "*.ttf" usr/share/fonts/TTF/liberation
}

View file

@ -1,26 +1,22 @@
# Template file for 'liberation-fonts-ttf'
pkgname=liberation-fonts-ttf
version=2.1.5
revision=1
build_style=gnu-makefile
hostmakedepends="fontforge fonttools"
revision=2
depends="font-util"
short_desc="TrueType fonts from RedHat"
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/archive/${version}.tar.gz"
checksum=9a823ccb33c8a8a865e84b982bcdc44d03ba4914adb91e6000df035dc0e55936
font_dirs="/usr/share/fonts/TTF"
pre_build() {
make versionupdate
}
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
install -m644 ${pkgname}-${version}/*.ttf ${DESTDIR}/usr/share/fonts/TTF
vmkdir usr/share/fonts/TTF/liberation
vcopy "*.ttf" usr/share/fonts/TTF/liberation
# install fontconfig files
vinstall ${FILESDIR}/30-0-liberation-mono.conf 644 \