liberation-fonts-ttf: register properly with fontconfig.
This commit is contained in:
parent
c19d69e967
commit
f449347e5d
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Microsoft -->
|
||||
<alias binding="same">
|
||||
<family>Courier New</family>
|
||||
<accept>
|
||||
<family>Liberation Mono</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Liberation Mono</family>
|
||||
<default>
|
||||
<family>Courier New</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Microsoft -->
|
||||
<alias binding="same">
|
||||
<family>Arial</family>
|
||||
<accept>
|
||||
<family>Liberation Sans</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Liberation Sans</family>
|
||||
<default>
|
||||
<family>Arial</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Microsoft -->
|
||||
<alias binding="same">
|
||||
<family>Times New Roman</family>
|
||||
<accept>
|
||||
<family>Liberation Serif</family>
|
||||
</accept>
|
||||
</alias>
|
||||
<alias binding="same">
|
||||
<family>Liberation Serif</family>
|
||||
<default>
|
||||
<family>Times New Roman</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
|
@ -1,28 +1,29 @@
|
|||
# Template build file for 'liberation-fonts-ttf'.
|
||||
pkgname=liberation-fonts-ttf
|
||||
version=2.00.0
|
||||
revision=1
|
||||
fulldepends="font-util"
|
||||
revision=2
|
||||
short_desc="TrueType fonts from RedHat"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-2, ${pkgname}"
|
||||
homepage="http://www.redhat.com/promo/fonts/"
|
||||
distfiles="https://fedorahosted.org/releases/l/i/liberation-fonts/${pkgname}-${version}.tar.gz"
|
||||
checksum=3b7214e7352b8e4990c71018031ecb0f40d6793f140d7a956d7345997c8c5100
|
||||
long_desc="
|
||||
On May 9, 2007, Red Hat announced the public release of these fonts
|
||||
under the trademark LIBERATION at the Red Hat Summit. There are three
|
||||
sets: Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L,
|
||||
and Bitstream Vera Sans), Serif (a substitute for Times New Roman,
|
||||
Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono (a
|
||||
substitute for Courier New, Cumberland, Courier, Nimbus Mono L,
|
||||
and Bitstream Vera Sans Mono)."
|
||||
|
||||
noarch=yes
|
||||
font_dirs="/usr/share/fonts/TTF"
|
||||
fulldepends="font-util xbps-triggers>=0.58"
|
||||
|
||||
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
|
||||
|
||||
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue