diff --git a/xxhash.yaml b/xxhash.yaml new file mode 100644 index 00000000000..371cd39c1fe --- /dev/null +++ b/xxhash.yaml @@ -0,0 +1,65 @@ +package: + name: xxhash + version: 0.8.2 + epoch: 0 + description: Extremely fast non-cryptographic hash algorithm + copyright: + - license: BSD-2-Clause + +environment: + contents: + packages: + - busybox + - ca-certificates-bundle + - build-base + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/Cyan4973/xxHash + tag: v${{package.version}} + expected-commit: bbb27a5efb85b92a0486cf361a8635715a53f6ba + + - runs: | + export CFLAGS="$CFLAGS -DXXH_FORCE_MEMORY_ACCESS=1 -flto=auto -O2" + case "${{build.arch}}" in + x86*) + # only implemented for x86/x86_64 + dispatch="1" + ;; + *) + dispatch="0" + ;; + esac + make DISPATCH="$dispatch" + + - runs: | + make DESTDIR="${{targets.destdir}}" PREFIX=/usr install + rm -rf "${{targets.destdir}}"/usr/lib/libxxhash.a + + - uses: strip + +subpackages: + - name: xxhash-doc + description: xxhash manpages + pipeline: + - uses: split/manpages + + - name: xxhash-libs + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}}/usr/lib + find ${{targets.destdir}}/usr/lib + mv ${{targets.destdir}}/usr/lib/libxxhash.so* ${{targets.subpkgdir}}/usr/lib/ + description: xxhash libs + + - name: xxhash-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - xxhash + description: xxhash dev + +update: + enabled: false