diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 88 |
2 files changed, 58 insertions, 50 deletions
@@ -1,26 +1,26 @@ pkgbase = noto-fonts-vf pkgdesc = Google Noto variable fonts - pkgver = 20220126 + pkgver = 20220327 pkgrel = 1 url = https://www.google.com/get/noto/ arch = any license = custom:SIL - source = noto-fonts-vf-20220126.tar.gz::https://github.com/googlefonts/noto-fonts/archive/c27d6fad48db54fb253401999d79e9643bbb63c9.tar.gz + source = noto-fonts-vf-20220327.tar.gz::https://github.com/googlefonts/noto-fonts/archive/3ea292d22b86c20d971531b0d9f7eb04afbdda5c.tar.gz source = 46-noto-mono.conf source = 46-noto-serif.conf source = 46-noto-sans.conf source = 66-noto-mono.conf source = 66-noto-serif.conf source = 66-noto-sans.conf - sha256sums = 4f303cf97ac2b84cec41a644f597647cb13c98934c5874cfe3ae6acd5ab220dc - sha256sums = SKIP - sha256sums = SKIP - sha256sums = SKIP - sha256sums = SKIP - sha256sums = SKIP - sha256sums = SKIP + sha256sums = 3ad5c3c8505e8e5b543a8620db5535d630698891399c63ff9cae5c456b52b71f + sha256sums = f5c09b37280d7569b6c99a78511639be4ae25b8c5406464422fe0421fe13a884 + sha256sums = c94368b24506770767d003e5bcba589a8e402e489c240ee52453bf3ac7e9b5fa + sha256sums = 83a8faf6a47954075f97a2d555048e2a6689c38603b2ca00150157bf645f4593 + sha256sums = 4526289f59654e2a81dc734669a1ae4e416f9a56d0896ec3741c6bf065baf8a8 + sha256sums = 4459944b63dc083107280f5d7375c69746bf80a09416a4a4909a100e58e5a33a + sha256sums = 52684bebf6447be22618d2a04ff37623ec92f9d8ccf6b6f972e5bcbcfee90d69 pkgname = noto-fonts-vf pkgname = noto-fonts-slim-vf - pkgdesc = Google Noto variable fonts (limited type faces) + pkgdesc = Google Noto variable fonts (limited typefaces coverage) @@ -3,33 +3,42 @@ pkgbase=noto-fonts-vf pkgname=(noto-fonts{,-slim}-vf) -pkgver=20220126 +pkgver=20220327 pkgrel=1 pkgdesc='Google Noto variable fonts' url='https://www.google.com/get/noto/' license=(custom:SIL) arch=(any) -_commit=c27d6fad48db54fb253401999d79e9643bbb63c9 +_commit=3ea292d22b86c20d971531b0d9f7eb04afbdda5c source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/googlefonts/noto-fonts/archive/${_commit}.tar.gz" {46,66}-noto-{mono,serif,sans}.conf) -sha256sums=('4f303cf97ac2b84cec41a644f597647cb13c98934c5874cfe3ae6acd5ab220dc' - 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') +sha256sums=('3ad5c3c8505e8e5b543a8620db5535d630698891399c63ff9cae5c456b52b71f' + 'f5c09b37280d7569b6c99a78511639be4ae25b8c5406464422fe0421fe13a884' + 'c94368b24506770767d003e5bcba589a8e402e489c240ee52453bf3ac7e9b5fa' + '83a8faf6a47954075f97a2d555048e2a6689c38603b2ca00150157bf645f4593' + '4526289f59654e2a81dc734669a1ae4e416f9a56d0896ec3741c6bf065baf8a8' + '4459944b63dc083107280f5d7375c69746bf80a09416a4a4909a100e58e5a33a' + '52684bebf6447be22618d2a04ff37623ec92f9d8ccf6b6f972e5bcbcfee90d69') prepare(){ - cd noto-fonts-*/ + cd noto-fonts-$_commit # generate missing font lists - echo - echo 'Generating font missing and duplicate (italic) font lists' + + # variable italic fonts + echo -e '\nGenerating font missing and duplicate font lists...' comm -23 \ <(ls unhinted/variable-ttf | sed 's/-VF.ttf//' | sort) \ <(ls unhinted/ttf | sort) \ | grep Italic | sed 's/-Italic//' \ > var_italic + # static only fonts + # ignore the silly html files in the cjk folders with a font file extension comm -13 \ <(ls unhinted/variable-ttf | sed 's/-VF.ttf//' | sort) \ <(ls unhinted/ttf | sort) \ + | grep -v 'CJK' \ > stat_only comm -13 \ @@ -38,9 +47,9 @@ prepare(){ | grep -v Italic \ > missing_var_slim - echo - echo 'Removing unneeded italic static fonts...' - # remove unneeded italic type faces + echo -e '\nRemoving unneeded italic static fonts...' + # if there is a variable italic variant font, but not a variable non-italic variant, + # then remove the static italic typefaces, so they won't be copied with the other static typefaces while read -r fontname; do [ -f unhinted/variable-ttf/${fontname}-VF.ttf ] && continue @@ -55,71 +64,70 @@ _package(){ conflicts=(noto-fonts{,-extra,} ttf-croscore) provides=(noto-fonts{,-extra,} ttf-croscore ttf-font) - cd noto-fonts-*/ + cd noto-fonts-$_commit case $pkgname in - *-slim-vf) + noto-fonts-slim-vf) _vfsrc=unhinted/slim-variable-ttf ;; - *) + noto-fonts-vf) _vfsrc=unhinted/variable-ttf ;; esac - pushd $_vfsrc - for f in *.ttf; do - install -Dm644 $f \ - "$pkgdir"/usr/share/fonts/noto/${f//-VF.ttf}.ttf - done - popd + ( + cd $_vfsrc + for f in *.ttf; do + install -vDm644 $f \ + "$pkgdir"/usr/share/fonts/noto/${f//-VF.ttf}.ttf + done + ) - ## install missings fonts - echo - echo 'Installing static variants of the missing variable fonts..' + # install missings fonts + echo -e '\nInstalling static variants of missing variable fonts...' while read -r fontname; do if [ -f "${pkgdir}"/usr/share/fonts/noto/${fontname}.ttf ]; then - echo " $fontname is already installed as a variable font." + echo " $fontname already installed as a variable font!" continue fi - echo " Installing $fontname static fonts" + echo -e "\nInstalling $fontname static fonts..." case $pkgname in - *-slim-vf) + noto-fonts-slim-vf) for face in Regular Medium SemiBold Bold; do [ -f unhinted/ttf/${fontname}/${fontname}-${face}.ttf ] && - install -v -t "${pkgdir}"/usr/share/fonts/noto/ \ + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ unhinted/ttf/${fontname}/${fontname}-${face}.ttf done ;; - *) - install -v -t "${pkgdir}"/usr/share/fonts/noto/ \ + noto-fonts-vf) + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ unhinted/ttf/${fontname}/${fontname}-*.ttf ;; esac done < stat_only - ## install missings font in the slim variable fonts package - if [[ $pkgname == *-slim-vf ]]; then - echo - echo 'Installing static variants of the missing slim variable fonts..' + # install missing fonts into the slim variable fonts package + if [[ $pkgname == noto-fonts-slim-vf ]]; then + echo -e '\nInstalling static variants of missing slim variable fonts...' while read -r fontname; do for face in Regular Medium SemiBold Bold; do [ -f unhinted/ttf/${fontname}/${fontname}-${face}.ttf ] && - install -v -t "${pkgdir}"/usr/share/fonts/noto/ \ + install -vDm644 -t "${pkgdir}"/usr/share/fonts/noto/ \ unhinted/ttf/${fontname}/${fontname}-${face}.ttf done done < missing_var_slim fi # install configs - echo - echo 'Installing configs...' - install -Dm644 -t "$pkgdir"/usr/share/fontconfig/conf.avail/ \ + echo -e '\nInstalling font configs...' + install -vDm644 -t "$pkgdir"/usr/share/fontconfig/conf.avail/ \ ../{46,66}-noto-{mono,serif,sans}.conf - install -dm755 "$pkgdir"/usr/share/fontconfig/conf.default - ln -s -t "$pkgdir"/usr/share/fontconfig/conf.default/ \ + install -vdm755 "$pkgdir"/usr/share/fontconfig/conf.default + ln -st "$pkgdir"/usr/share/fontconfig/conf.default/ \ ../conf.avail/{46,66}-noto-{mono,serif,sans}.conf - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname}/ + echo -e '\nCopying License...' + install -vDm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname}/ } package_noto-fonts-vf(){ @@ -127,6 +135,6 @@ package_noto-fonts-vf(){ } package_noto-fonts-slim-vf(){ - pkgdesc+=' (limited type faces)' + pkgdesc+=' (limited typefaces coverage)' _package } |