Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 29 additions & 18 deletions srcpkgs/font-atkinson-hyperlegible-ttf/template
Original file line number Diff line number Diff line change
@@ -1,33 +1,44 @@
# Template file for 'font-atkinson-hyperlegible-ttf'
pkgname=font-atkinson-hyperlegible-ttf
version=2020.0514
version=2025.02.21
revision=1
create_wrksrc=yes
_base_rev=1cb311624b2ddf88e9e37873999d165a8cd28b46
_next_rev=7925f50f649b3813257faf2f4c0b381011f434f1
_mono_rev=154d50362016cc3e873eb21d242cd0772384c8f9
depends="font-util xbps-triggers"
short_desc="Typeface with improved readability and legibility - TTF variant"
maintainer="J Farkas <chexum+git@gmail.com>"
license="custom:Atkinson Hyperlegible Font License"
maintainer="classabbyamp <void@placeviolette.net>"
license="OFL-1.1"
homepage="https://brailleinstitute.org/freefont"
distfiles="https://www.brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/Atkinson-Hyperlegible-Font-Print-and-Web-${version/./-}.zip
https://www.brailleinstitute.org/wp-content/uploads/2020/11/Atkinson-Hyperlegible-Font-License-2020-1104.pdf"
checksum="9e1a65d53ddadc8253791e958a07bf5aba210ef6155ea9c91b2b4c46bbce53e3
066982a89de7ce65f13a1cfabe91f93b5dbb09b6ca23f0525bc53eadb1d03423"
font_dirs="/usr/share/fonts/TTF"
_licensefile="${distfiles##*/}"
skip_extraction="${_licensefile}"
distfiles="https://github.com/googlefonts/atkinson-hyperlegible/archive/${_base_rev}.tar.gz
https://github.com/googlefonts/atkinson-hyperlegible-next/archive/${_next_rev}.tar.gz
https://github.com/googlefonts/atkinson-hyperlegible-next-mono/archive/${_mono_rev}.tar.gz"
checksum="d761a7dd4f020d883a90cebda3258618159230523a19a16ed8b94ab0b0d17dae
4b455dcf5ce2d6261df7caf6f4d035c893b446f14269106a07bc03c204368626
d8b50ca876781ef6c2f0e1dd1a7ed6896a7f7769242e76be901b98c6d7edfafb"
font_dirs="/usr/share/fonts/TTF/atkinson-hyperlegible"
provides="font:sans-serif-0_1 font:monospace-0_1"

do_install() {
vmkdir ${font_dirs}
vcopy */*/TTF/Atkinson*.ttf ${font_dirs}
vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_licensefile}
for fmt in ttf otf woff2; do
while read -r f; do
vinstall "$f" 0644 usr/share/fonts/${fmt^^}/atkinson-hyperlegible
done < <(find . -name "*.${fmt}")
done
}

font-atkinson-hyperlegible-otf_package() {
font_dirs="/usr/share/fonts/OTF"
font_dirs="/usr/share/fonts/OTF/atkinson-hyperlegible"
short_desc="${short_desc/TTF/OTF}"
pkg_install() {
vmkdir ${font_dirs}
vcopy */*/Atkinson*.otf ${font_dirs}
vlicense ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/${_licensefile}
vmove $font_dirs
}
}

font-atkinson-hyperlegible-web_package() {
font_dirs="/usr/share/fonts/WOFF2/atkinson-hyperlegible"
short_desc="${short_desc/TTF/WOFF}"
pkg_install() {
vmove $font_dirs
}
}
1 change: 1 addition & 0 deletions srcpkgs/font-atkinson-hyperlegible-web
3 changes: 3 additions & 0 deletions srcpkgs/google-fonts-ttf/files/dup.lst
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ ofl/sourcecodepro
ofl/sourcesans3
ofl/taiheritagepro
ofl/vollkorn
ofl/atkinsonhyperlegible
ofl/atkinsonhyperlegiblemono
ofl/atkinsonhyperlegiblenext
12 changes: 7 additions & 5 deletions srcpkgs/google-fonts-ttf/template
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Template file for 'google-fonts-ttf'
pkgname=google-fonts-ttf
version=20251010
version=20251218
revision=1
_githash=11ca86e3b176fe1fff5ca8450c7e6f2fbee46fb5
_githash=0bd2d5599819aa0774f5ca64c8ac3f54ae3fd54f
# Those fonts were provided by google-fonts-ttf
depends="font-util cantarell-fonts noto-fonts-ttf noto-fonts-emoji
amiri-font fonts-croscore-ttf font-b612 font-fira-ttf
Expand All @@ -12,14 +12,17 @@ depends="font-util cantarell-fonts noto-fonts-ttf noto-fonts-emoji
font-sil-charis font-sil-padauk font-sil-abyssinica font-sil-mingzat
font-sil-harmattan font-libre-hebrew font-alef font-reem-kufi-ttf
font-crosextra-caladea-ttf font-adobe-source-code-pro
fonts-roboto-ttf font-vollkorn-ttf ttf-ubuntu-font-family"
fonts-roboto-ttf font-vollkorn-ttf ttf-ubuntu-font-family
font-atkinson-hyperlegible-ttf font-atkinson-hyperlegible-otf
font-atkinson-hyperlegible-web"
short_desc="Google's Collection of Fonts"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0, OFL-1.1"
homepage="https://fonts.google.com/"
distfiles="https://github.com/google/fonts/archive/${_githash}.tar.gz"
checksum=af8399a6cd3745486bb342ff95e888ac69c6b3fbee1093d24308fe959d1296ce
checksum=d07e0aa7a1ce5445faaf4b5b668ff4e6316aec9225a9bf6a33d3d221123582dc
font_dirs="/usr/share/fonts/TTF"
provides="font:serif-0_1 font:sans-serif-0_1 font:monospace-0_1"

post_extract() {
# https://github.com/google/fonts/issues/2106#issuecomment-520067314
Expand All @@ -31,7 +34,6 @@ post_extract() {
rm -r ofl/noto*
}


do_install() {
vmkdir usr/share/fonts/TTF
find apache ofl \
Expand Down
Loading