diff --git a/diffoscope.yaml b/diffoscope.yaml new file mode 100644 index 00000000000..79fcf647e69 --- /dev/null +++ b/diffoscope.yaml @@ -0,0 +1,44 @@ +package: + name: diffoscope + version: 245 + epoch: 0 + description: "In-depth comparison of files, archives, and directories." + copyright: + - license: GPL-3.0-or-later + dependencies: + runtime: + - python3 + - py3-libarchive-c + - py3-magic + +environment: + contents: + packages: + - wolfi-base + - busybox + - ca-certificates-bundle + - build-base + - python3 + - py3-setuptools + - py3-docutils + - py3-gpep517 + - py3-wheel + +pipeline: + - uses: fetch + with: + uri: https://files.pythonhosted.org/packages/source/d/diffoscope/diffoscope-${{package.version}}.tar.gz + expected-sha256: 922930b14a7189e12a67f08c9e21b09bb621a1005bcaf58fead5df1a42bc4d7b + + - runs: | + python3 setup.py build + + - runs: | + python3 setup.py install --prefix=/usr --root="${{targets.destdir}}" + + - uses: strip + +update: + enabled: true + release-monitor: + identifier: 31806 diff --git a/py3-libarchive-c.yaml b/py3-libarchive-c.yaml new file mode 100644 index 00000000000..d3dc4624c7b --- /dev/null +++ b/py3-libarchive-c.yaml @@ -0,0 +1,40 @@ +package: + name: py3-libarchive-c + version: 5.0 + epoch: 0 + description: "Python interface to libarchive." + copyright: + - license: CC0-1.0 + +environment: + contents: + packages: + - busybox + - build-base + - wolfi-baselayout + - python3 + - py3-setuptools + - libarchive + - libarchive-dev + - scanelf + +pipeline: + - uses: fetch + with: + uri: https://files.pythonhosted.org/packages/source/l/libarchive-c/libarchive-c-${{package.version}}.tar.gz + expected-sha256: d673f56673d87ec740d1a328fa205cafad1d60f5daca4685594deb039d32b159 + + # Use the correct library soname + # NOTE: find_library is broken on aarch64, so just hardcode it for now. + - runs: | + soname=$(scanelf --quiet --soname /usr/lib/libarchive.so | awk '{print $1}') + sed -i -e "s:find_library('archive'):'/usr/lib/$soname':" libarchive/ffi.py + + - runs: | + python3 setup.py build + python3 setup.py install --skip-build --root="${{targets.destdir}}" + +update: + enabled: true + release-monitor: + identifier: 9954