diff --git a/srcpkgs/noto-fonts-cjk/template b/srcpkgs/noto-fonts-cjk/template index 22494e46b3e..70d8e74a6ec 100644 --- a/srcpkgs/noto-fonts-cjk/template +++ b/srcpkgs/noto-fonts-cjk/template @@ -1,21 +1,28 @@ # Template file for 'noto-fonts-cjk' pkgname=noto-fonts-cjk -version=20190416 -revision=2 -_githash=be6c059ac1587e556e2412b27f5155c8eb3ddbe6 -wrksrc="noto-cjk-${_githash}" +# set to the date of the latest release packaged +version=20220127 +revision=1 +# the sans and serif variants are released on separate tags +_sans_version=2.004 +_serif_version=2.001 +create_wrksrc=yes depends="font-util" short_desc="Google Noto CJK Fonts" -maintainer="Peter Bui " +maintainer="classabbyamp " license="OFL-1.1" homepage="https://www.google.com/get/noto/help/cjk/" -#changelog="https://raw.githubusercontent.com/googlefonts/noto-cjk/master/NEWS" -#changelog_prior="https://raw.githubusercontent.com/googlefonts/noto-cjk/master/HISTORY" -distfiles="https://codeload.github.com/googlefonts/noto-cjk/tar.gz/${_githash}>${pkgname}-${version}.tar.gz" -checksum=2ad7fe638b1e99255c3d873dc7e0b8434a896f571abdec1a0698cfab3ef618fe +changelog="https://raw.githubusercontent.com/googlefonts/noto-cjk/main/Sans/NEWS.md + https://raw.githubusercontent.com/googlefonts/noto-cjk/main/Serif/NEWS.md" +distfiles="https://github.com/googlefonts/noto-cjk/releases/download/Sans${_sans_version}/03_NotoSansCJK-OTC.zip + https://github.com/googlefonts/noto-cjk/releases/download/Serif${_serif_version}/04_NotoSerifCJKOTC.zip" +checksum="528f4e1b25ff3badb0321b38d015d954c4c0de926c7830ef50e4a1948f6a3eed + 2f0630f88752d50b11a427bdd71f20f7178219e647c56cbaf36c032dbe1ed9d0" font_dirs="/usr/share/fonts/noto" 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 } diff --git a/srcpkgs/noto-fonts-cjk/update b/srcpkgs/noto-fonts-cjk/update new file mode 100644 index 00000000000..2586e164145 --- /dev/null +++ b/srcpkgs/noto-fonts-cjk/update @@ -0,0 +1,3 @@ +# not perfect, but good enough +version="${_sans_version}" +pattern='/archive/refs/tags/Sans\K[\d.]+(?=\.tar\.gz")'