blob: 54e7c3e9f1150c8b0a839cf9b4f8017b15f5bdde (
plain) (
tree)
|
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ttf-noto
pkgver=20220420
_commit=c8729a9e61b2a54a9d2b4c61a82d4d93213bd6e3
pkgrel=1
pkgdesc="Noto font family"
url="https://www.google.com/get/noto/"
arch="noarch"
options="!check" # how do you test a font?
license="OFL-1.1"
depends="fontconfig"
makedepends=""
# added fontconfig configuration from:
# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
source="noto-${pkgver}.tar.gz::https://github.com/googlefonts/noto-fonts/archive/${_commit}.tar.gz
40-noto-arabic.conf
45-noto-sans.conf
45-noto-serif.conf
90-tt-noto-sans.conf
90-tt-noto-serif.conf"
builddir="$srcdir"/noto-fonts-$_commit
package() {
mkdir -p "$pkgdir"/usr/share/fonts/$pkgname/
mkdir -p "$pkgdir"/etc/fonts/conf.d/
##
# FIXME: some fonts have duplicate names; we copy
# new files (and skip ones that may already exist)
#
# $ find . -type f -name "*.ttf" | cut -d/ -f3 | sort | uniq -d | while read k; do find . -type f -name "${k}"; done | sort
# ./NotoSansTifinagh/NotoSansTifinaghAPT-Regular.ttf
# ./NotoSansTifinagh/NotoSansTifinaghAdrar-Regular.ttf
# ...
# ./NotoSansTifinaghSIL/NotoSansTifinaghSIL-Regular.ttf
# ./NotoSansTifinaghTawellemmet/NotoSansTifinaghTawellemmet-Regular.ttf
#
# Avoid using 'cp -n'. See #990 for more information.
find "$builddir"/hinted/ttf/ -name "*.ttf" | sort | while read k; do
if ! test -f "$pkgdir"/usr/share/fonts/$pkgname/${k##*/}; then
cp -v ${k} "$pkgdir"/usr/share/fonts/$pkgname/;
fi
done
cp "$srcdir"/*.conf "$pkgdir"/etc/fonts/conf.d/
}
sha512sums="8d9a2b32bb49e4dc2e341141322856bd7da337de7176ecbb04a742e483f00d283afa33e2c601d0ee78fb4677166affdf9ac83083bda9d5b82e495a8986ece8c0 noto-20220420.tar.gz
47396e7a4e5dfb38d3df6dff0b4584757cc132f393d3410463eefc3dbb5f2af592a6b07a4c098d8c594be03f23e4eb84b76b672245fe0cea816927cf535ea270 40-noto-arabic.conf
748dfecbc3ad5c3750764e6ae889bbc4e614885237bb91ece138d2dc5014fd41ea6361b32982cfa4e76c7c092e0b93f90cccd0b92acbd408b7c302c44c1523e6 45-noto-sans.conf
5059295a1c36c4ec4aae61443221ee74876315127895da0773e4feb77e70cfc4b7923dde8f6510d6cf9de019082e15f1f4fd4b53f0bce4d2a681541f2de587df 45-noto-serif.conf
e5d252e4ee265f9cc7a91eea0e0f8c74315a60cbce606860e0f9e722eb9331f8d87d541dd715bef46bdb4e637bab0344f2fd98cc0424e7cfa17e588efa07eb33 90-tt-noto-sans.conf
4f8760f7eeae99050a3b8ac73f4eeeb5ad32e9e5224034292e3ecdc260ffcc92f3ae45aa35e9f86905fce4ff909bb3263e25d8f4fe56dacba2fb3de2107e314f 90-tt-noto-serif.conf"
|