new blfs: media-fonts/noto-emoji-20250912
This commit is contained in:
38
media-fonts/noto-emoji-20250912.PKGBUILD
Normal file
38
media-fonts/noto-emoji-20250912.PKGBUILD
Normal file
@@ -0,0 +1,38 @@
|
||||
pkgname=noto-emoji
|
||||
pkgver=20250912
|
||||
_commit="8998f5dd683424a73e2314a8c1f1e359c19e8742"
|
||||
_commit_mc="b80db438fe644bd25e0032661ab66fa72f2af0e2"
|
||||
pkgdesc='Google Noto Color Emoji font'
|
||||
arch=(any)
|
||||
homepage='https://www.google.com/get/noto/'
|
||||
license=(OFL-1.1-no-RFN)
|
||||
_fontconfs=("75-noto-emoji-fallback.conf")
|
||||
_fontconf_sums=("4f1ecb8bbad064885a02a8bd5d6a4a32")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${pkgname}-${pkgver}-monochrome.tar.gz"
|
||||
${_fontconfs[@]}
|
||||
)
|
||||
urls=("https://github.com/googlefonts/noto-emoji/archive/${_commit}.tar.gz"
|
||||
"https://github.com/zjaco13/Noto-Emoji-Monochrome/archive/${_commit_mc}.tar.gz"
|
||||
${_fontconfs[@]}
|
||||
)
|
||||
md5sums=("a75b88f15a3f41c221666451f510c33f"
|
||||
"d8c27c1159e275472ed0c1c1b9c90636"
|
||||
${_fontconf_sums[@]}
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
tar -xf ${distdir}/${sources[1]}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -vDm644 fonts/NotoColorEmoji.ttf -t "${pkgdir}/usr/share/fonts/${pkgname}"
|
||||
install -vDm644 Noto-Emoji-Monochrome-${_commit_mc}/fonts/*.ttf "${pkgdir}/usr/share/fonts/${pkgname}"
|
||||
|
||||
for _f in ${_fontconfs[@]}; do
|
||||
install -vDm644 "${filedir}/${_f}" -t "${pkgdir}/etc/fonts/conf.avail"
|
||||
done
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
31
media-fonts/noto-emoji-20250912/75-noto-emoji-fallback.conf
Normal file
31
media-fonts/noto-emoji-20250912/75-noto-emoji-fallback.conf
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
:
|
||||
<!-- This adds Noto Color Emoji as a fallback font for all of the default font families;
|
||||
When enabled any **missing** glyphs from the system font will be rendered using Noto Color Emoji in (e.g.)
|
||||
Konsole, Firefox, etc. It _might_ impact web rendering if other fonts would usually be preferred
|
||||
but as it's only doing replacements for missing glyphs we're really just supplementing
|
||||
the existing fallback logic -->
|
||||
|
||||
<match target="pattern">
|
||||
<test name="family"><string>sans</string></test>
|
||||
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||
</match>
|
||||
|
||||
<match target="pattern">
|
||||
<test name="family"><string>serif</string></test>
|
||||
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||
</match>
|
||||
|
||||
<match target="pattern">
|
||||
<test name="family"><string>sans-serif</string></test>
|
||||
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||
</match>
|
||||
|
||||
<match target="pattern">
|
||||
<test name="family"><string>monospace</string></test>
|
||||
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||
</match>
|
||||
|
||||
</fontconfig>
|
||||
Reference in New Issue
Block a user