x11-fonts/noto-sans-symbols2: Convert from upstream tarball to individual font file

main
Po-Chuan Hsieh 2024-05-14 02:20:15 +08:00
parent a6ac892a15
commit d028f05ab6
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 18 additions and 10 deletions

View File

@ -1,21 +1,25 @@
PORTNAME= noto
PORTVERSION= 2.008
CATEGORIES= x11-fonts
MASTER_SITES= https://github.com/notofonts/symbols/releases/download/NotoSansSymbols2-v${PORTVERSION}/
MASTER_SITES= https://github.com/notofonts/notofonts.github.io/raw/noto-monthly-release-23.11.1/fonts/ \
https://github.com/notofonts/notofonts.github.io/raw/noto-monthly-release-23.11.1/fonts/NotoSansSymbols2/hinted/ttf/:fonts
PKGNAMESUFFIX= -sans-symbols2
DISTNAME= NotoSansSymbols2-v${PORTVERSION}
DIST_SUBDIR= Noto
DISTFILES= LICENSE \
${FONTS:S|$|:fonts|}
DIST_SUBDIR= Noto/SansSymbols2/${PORTVERSION}
EXTRACT_ONLY= # empty
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Google Noto Sans Symbols 2
WWW= https://fonts.google.com/noto \
https://notofonts.github.io/ \
https://github.com/notofonts/symbols
https://github.com/notofonts/symbols \
https://github.com/notofonts/notofonts.github.io/tree/main/fonts/NotoSansSymbols2
LICENSE= OFL11
LICENSE_FILE= ${WRKSRC}/OFL.txt
LICENSE_FILE= ${DISTDIR}/${DIST_SUBDIR}/LICENSE
USES= fonts zip
USES= fonts
NO_ARCH= yes
NO_BUILD= yes
@ -23,8 +27,10 @@ NO_WRKSUBDIR= yes
PLIST_FILES= ${FONTSDIR}/NotoSansSymbols2-Regular.ttf
FONTS= NotoSansSymbols2-Regular.ttf
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
${INSTALL_DATA} ${WRKSRC}/NotoSansSymbols2/hinted/ttf/NotoSansSymbols2-Regular.ttf ${STAGEDIR}${FONTSDIR}
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${FONTS} ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
TIMESTAMP = 1710676091
SHA256 (Noto/NotoSansSymbols2-v2.008.zip) = 346c930bbe8eb946701a05c54e9c11a2094dee1d93c387bf1771c0a3e335688f
SIZE (Noto/NotoSansSymbols2-v2.008.zip) = 2331441
TIMESTAMP = 1712354461
SHA256 (Noto/SansSymbols2/2.008/LICENSE) = f2095b08bed08b23a6fe26112fcd679a2bee3f002eef077eb05d215ed1051bd8
SIZE (Noto/SansSymbols2/2.008/LICENSE) = 4374
SHA256 (Noto/SansSymbols2/2.008/NotoSansSymbols2-Regular.ttf) = c4a0a80f0041ce4be81e2478faad22776d23edb98ae3f0d19bd37044820ecf9d
SIZE (Noto/SansSymbols2/2.008/NotoSansSymbols2-Regular.ttf) = 671568