Skip to content

Commit 7060f15

Browse files
committed
fonts: switch to git-checkout
Signed-off-by: Colin Watson <colin.watson@chainguard.dev>
1 parent e0a221b commit 7060f15

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

font-liberation.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package:
33
name: font-liberation
44
version: 2.1.5
5-
epoch: 1
5+
epoch: 2
66
description: Fonts to replace commonly used Microsoft Windows fonts
77
copyright:
88
- license: OFL-1.1
@@ -16,19 +16,25 @@ environment:
1616
- busybox
1717
- ca-certificates-bundle
1818
- fontconfig
19+
- fontforge
20+
- py3-supported-fonttools
21+
- python3
1922

2023
pipeline:
21-
- uses: fetch
24+
- uses: git-checkout
2225
with:
23-
expected-sha256: 7191c669bf38899f73a2094ed00f7b800553364f90e2637010a69c0e268f25d0
24-
uri: https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-${{package.version}}.tar.gz
26+
repository: https://github.com/liberationfonts/liberation-fonts
27+
tag: ${{package.version}}
28+
expected-commit: 4b0192046158094654e865245832c66d2104219e
29+
30+
- runs: make
2531

2632
- runs: |
2733
mkdir -p ${{targets.destdir}}/usr/share/fonts/${{package.name}} \
2834
${{targets.destdir}}/etc/fonts/conf.avail \
2935
${{targets.destdir}}/etc/fonts/conf.d
3036
31-
install -D -m644 ./*.ttf -t ${{targets.destdir}}/usr/share/fonts/${{package.name}}/
37+
install -D -m644 liberation-fonts-ttf-${{package.version}}/*.ttf -t ${{targets.destdir}}/usr/share/fonts/${{package.name}}/
3238
3339
for i in $(find . -name '*.conf'); do
3440
install -D -m644 "$i" -t ${{targets.destdir}}/etc/fonts/conf.avail/
@@ -39,8 +45,8 @@ pipeline:
3945

4046
update:
4147
enabled: true
42-
release-monitor:
43-
identifier: 16833
48+
github:
49+
identifier: liberationfonts/liberation-fonts
4450

4551
test:
4652
pipeline:

font-opensans.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
#nolint:valid-pipeline-git-checkout-tag
12
package:
23
name: font-opensans
34
version: 0_git20210927
4-
epoch: 1
5+
epoch: 2
56
description: Humanist Sans Serif Typeface
67
copyright:
78
- license: Apache-2.0
@@ -16,10 +17,11 @@ environment:
1617
- mkfontscale
1718

1819
pipeline:
19-
- uses: fetch
20+
- uses: git-checkout
2021
with:
21-
expected-sha256: cdc1ba1f82c7a130a2c6a9def519528ec936baad08e0188bf8dc90a0718ca7f5
22-
uri: https://github.com/googlefonts/opensans/archive/ebedbda589fe5bd861b02325aca98c86ad845251.tar.gz
22+
repository: https://github.com/googlefonts/opensans
23+
branch: main
24+
expected-commit: bd7e37632246368c60fdcbd374dbf9bad11969b6
2325

2426
- runs: |
2527
install -D -m644 fonts/ttf/*.ttf -t "${{targets.destdir}}"/usr/share/fonts/opensans

font-stix-otf-arm.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package:
33
name: font-stix-otf-arm
44
version: 2.13
5-
epoch: 0
5+
epoch: 1
66
description: stix-otf fonts
77
copyright:
88
- license: OFL-1.1
@@ -18,10 +18,11 @@ environment:
1818
- busybox
1919

2020
pipeline:
21-
- uses: fetch
21+
- uses: git-checkout
2222
with:
23-
uri: https://github.com/stipub/stixfonts/archive/refs/tags/v2.13b171.tar.gz
24-
expected-sha256: 1e76b9ab0bb08372ff73ad5b58d9116260e9058d1fce4b83fe1e213c3b9c947f
23+
repository: https://github.com/stipub/stixfonts
24+
tag: v2.13b171
25+
expected-commit: 744a22a4dd626cd14d75728aef34fc8ad7c85db0
2526

2627
- runs: |
2728
mkdir -p "${{targets.contextdir}}/usr/share/fonts/stix-fonts/"
@@ -30,6 +31,8 @@ pipeline:
3031
update:
3132
enabled: false
3233
exclude-reason: We're currently fetching from the latest release, 2.13 b171, which appears to be a one-off build. We should keep an eye out for any similar builds in the future.
34+
github:
35+
identifier: stipub/stixfonts
3336

3437
test:
3538
pipeline:

0 commit comments

Comments
 (0)