Skip to content

Commit

Permalink
Introduced package font-liberation1 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-h2o committed Jun 19, 2024
1 parent 02bbb1a commit eb19f4b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ jobs:
# TODO: if new packages list grows, automation of listing packages would be handy
- name: Build packages specific to this repo
run: |
docker run --privileged --rm -v $(pwd):/work cgr.dev/chainguard/melange build --arch=x86_64 poppler.yaml
docker run --privileged --rm -v $(pwd):/work cgr.dev/chainguard/melange build --arch=x86_64 poppler.yaml
docker run --privileged --rm -v $(pwd)/packages:/work/packages -v $(pwd)/font-liberation1.yaml:/work/font-liberation1.yaml cgr.dev/chainguard/melange build --arch=x86_64 font-liberation1.yaml
5 changes: 3 additions & 2 deletions .github/workflows/push-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
# TODO: if new packages list grows, automation of listing packages would be handy
- name: Build signed packages specific to this repo
run: |
docker run --privileged --rm -v $(pwd):/work cgr.dev/chainguard/melange build --signing-key melange.rsa --arch=x86_64 poppler.yaml
docker run --privileged --rm -v $(pwd):/work cgr.dev/chainguard/melange build --signing-key melange.rsa --arch=x86_64 poppler.yaml\ docker run --privileged --rm -v $(pwd)/packages:/work/packages -v $(pwd)/font-liberation1.yaml:/work/font-liberation1.yaml cgr.dev/chainguard/melange build --arch=x86_64 font-liberation1.yaml
docker run --privileged --rm -v $(pwd)/packages:/work/packages -v $(pwd)/font-liberation1.yaml:/work/font-liberation1.yaml cgr.dev/chainguard/melange build --arch=x86_64 font-liberation1.yaml
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand Down
47 changes: 47 additions & 0 deletions font-liberation1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Generated from https://git.alpinelinux.org/aports/plain/main/font-liberation/APKBUILD
package:
name: font-liberation1
version: 1.07.5
epoch: 0
description: Fonts to replace commonly used Microsoft Windows fonts
copyright:
- license: OFL-1.1

environment:
contents:
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
repositories:
- https://packages.wolfi.dev/os
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- fontconfig

pipeline:
- uses: fetch
with:
expected-sha256: 201f64cc3c0f625b64098fb1fc4578680662956df49af233965f0dd45b4aa973
uri: https://github.com/liberationfonts/liberation-1.7-fonts/files/2175699/liberation-fonts-ttf-${{package.version}}.tar.gz

- runs: |
mkdir -p ${{targets.destdir}}/usr/share/fonts/${{package.name}} \
${{targets.destdir}}/etc/fonts/conf.avail \
${{targets.destdir}}/etc/fonts/conf.d
install -D -m644 ./*.ttf -t ${{targets.destdir}}/usr/share/fonts/${{package.name}}/
for i in $(find . -name '*.conf'); do
install -D -m644 "$i" -t ${{targets.destdir}}/etc/fonts/conf.avail/
ln -sf /etc/fonts/conf.avail/$i ${{targets.destdir}}/etc/fonts/conf.d/$i
done
- uses: strip

update:
enabled: true
release-monitor:
identifier: 16833

0 comments on commit eb19f4b

Please sign in to comment.