diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index eff82888efa..c1fb0afa409 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -117,6 +117,10 @@ jobs: with: package-name: make + - uses: chainguard-dev/actions/inky-build-pkg@main + with: + package-name: file + - name: 'Upload the repository to a bucket' run: | cp /etc/apk/keys/wolfi-signing.rsa.pub ${{ github.workspace }}/packages/wolfi-signing.rsa.pub diff --git a/Makefile b/Makefile index 7dc15080de7..34d49a64878 100644 --- a/Makefile +++ b/Makefile @@ -60,5 +60,6 @@ $(eval $(call build-empty-package,texinfo,6.8-r0)) $(eval $(call build-empty-package,gzip,1.12-r1)) $(eval $(call build-package,busybox,1.35.0-r2)) $(eval $(call build-empty-package,make,4.3-r1)) +$(eval $(call build-empty-package,file,5.42-r1)) .build-packages: ${PACKAGES} diff --git a/file.yaml b/file.yaml new file mode 100644 index 00000000000..399e6925592 --- /dev/null +++ b/file.yaml @@ -0,0 +1,42 @@ +package: + name: file + version: 5.42 + epoch: 1 + description: "file-type identification utility" + target-architecture: + - all + copyright: + - paths: + - "*" + attestation: TODO + license: BSD-2-Clause + dependencies: + runtime: + +environment: + contents: + repositories: + - https://packages.wolfi.dev/bootstrap/stage3 + keyring: + - https://packages.wolfi.dev/bootstrap/stage3/wolfi-signing.rsa.pub + packages: + - busybox + - ca-certificates-bundle + - build-base + - file + +pipeline: + - uses: fetch + with: + uri: http://ftp.astron.com/pub/file/file-${{package.version}}.tar.gz + expected-sha256: c076fb4d029c74073f15c43361ef572cfb868407d347190ba834af3b1639b0e4 + - name: Configure + runs: | + ./configure \ + --host=$(uname -m)-pc-linux-gnu \ + --target=$(uname -m)-pc-linux-gnu \ + --prefix=/usr \ + --datadir=/usr/share + - uses: autoconf/make + - uses: autoconf/make-install + - uses: strip \ No newline at end of file