smlinux/xorg/liberation-fonts-ttf/liberation-fonts-ttf.SMBuild

30 lines
905 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=liberation-fonts-ttf
version=2.1.0
build=1sml
homepage="https://github.com/liberationfonts/liberation-fonts"
download="https://github.com/liberationfonts/liberation-fonts/archive/refs/tags/$version.tar.gz"
desc="Font family which aims at metric compatibility with Arial, Times New Roman, and Courier New"
requires="fontconfig mkfontscale"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
mkdir -p $pkg/usr/share/fonts/TTF
cp -a *ttf $pkg/usr/share/fonts/TTF/
install -Dm 644 $srcdir/60-liberation.conf $pkg/etc/fonts/conf.d/60-liberation.conf
mkfinalpkg
}
sha512sums="
aa067dfd877be8b9407879c1ef0830d7dbbdb541761acec38848305f403ce992ba7c6db97d7e648e33fce9b19c42d31ba66c02c21221c8f9f136a5d296d5e424 liberation-fonts-ttf-2.1.0.tar.lz
"