Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions xxhash.yaml
Original file line number Diff line number Diff line change
@@ -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