noto-fonts-cjk: update to 20220127, adopt.

This commit is contained in:
classabbyamp 2022-09-28 17:29:48 -04:00 committed by classabbyamp
parent f8b6d98c21
commit 16b713dea6
2 changed files with 20 additions and 10 deletions

View file

@ -1,21 +1,28 @@
# Template file for 'noto-fonts-cjk' # Template file for 'noto-fonts-cjk'
pkgname=noto-fonts-cjk pkgname=noto-fonts-cjk
version=20190416 # set to the date of the latest release packaged
revision=2 version=20220127
_githash=be6c059ac1587e556e2412b27f5155c8eb3ddbe6 revision=1
wrksrc="noto-cjk-${_githash}" # the sans and serif variants are released on separate tags
_sans_version=2.004
_serif_version=2.001
create_wrksrc=yes
depends="font-util" depends="font-util"
short_desc="Google Noto CJK Fonts" short_desc="Google Noto CJK Fonts"
maintainer="Peter Bui <pnutzh4x0r@gmail.com>" maintainer="classabbyamp <void@placeviolette.net>"
license="OFL-1.1" license="OFL-1.1"
homepage="https://www.google.com/get/noto/help/cjk/" homepage="https://www.google.com/get/noto/help/cjk/"
#changelog="https://raw.githubusercontent.com/googlefonts/noto-cjk/master/NEWS" changelog="https://raw.githubusercontent.com/googlefonts/noto-cjk/main/Sans/NEWS.md
#changelog_prior="https://raw.githubusercontent.com/googlefonts/noto-cjk/master/HISTORY" https://raw.githubusercontent.com/googlefonts/noto-cjk/main/Serif/NEWS.md"
distfiles="https://codeload.github.com/googlefonts/noto-cjk/tar.gz/${_githash}>${pkgname}-${version}.tar.gz" distfiles="https://github.com/googlefonts/noto-cjk/releases/download/Sans${_sans_version}/03_NotoSansCJK-OTC.zip
checksum=2ad7fe638b1e99255c3d873dc7e0b8434a896f571abdec1a0698cfab3ef618fe https://github.com/googlefonts/noto-cjk/releases/download/Serif${_serif_version}/04_NotoSerifCJKOTC.zip"
checksum="528f4e1b25ff3badb0321b38d015d954c4c0de926c7830ef50e4a1948f6a3eed
2f0630f88752d50b11a427bdd71f20f7178219e647c56cbaf36c032dbe1ed9d0"
font_dirs="/usr/share/fonts/noto" font_dirs="/usr/share/fonts/noto"
do_install() { do_install() {
install -Dm644 Noto*.ttc -t ${DESTDIR}/usr/share/fonts/noto vmkdir usr/share/fonts/noto
vcopy "*.ttc" usr/share/fonts/noto
vcopy "OTC/*.ttc" usr/share/fonts/noto
vlicense LICENSE vlicense LICENSE
} }

View file

@ -0,0 +1,3 @@
# not perfect, but good enough
version="${_sans_version}"
pattern='/archive/refs/tags/Sans\K[\d.]+(?=\.tar\.gz")'