Skip to content

Commit

Permalink
build and recipe for xxhash (#1099)
Browse files Browse the repository at this point in the history
* build and recipe for xxhash

* restore pixi.lock

* remove CFLAGS variable

* add existence tests

* remove selectors
  • Loading branch information
KGB99 authored Jun 7, 2024
1 parent a1cfee9 commit 7844382
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ cmd = ["mkdocs", "build"]

[environments]
rattler-build-env = ["feature_rattler_build"]
documentation-env = ["feature_documentation"]
documentation-env = ["feature_documentation"]
7 changes: 7 additions & 0 deletions recipes/recipes_emscripten/xxhash/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -euxo pipefail

# Build step
emmake make install -j8

42 changes: 42 additions & 0 deletions recipes/recipes_emscripten/xxhash/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
context:
name: xxhash
version: 0.8.2

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://github.com/Cyan4973/${{ name }}/archive/v${{ version }}.tar.gz
sha256: baee0c6afd4f03165de7a4e67988d16f0f2b257b51d0e3cb91909302a26a79c4

build:
number: 0

requirements:
build:
- ${{ compiler('c') }}
- make
- cmake

tests:
- script:
- test -f ${PREFIX}/lib/libxxhash.a
- test -f ${PREFIX}/include/xxhash.h

about:
homepage: http://www.xxhash.com/
license: BSD-2-Clause
license_file: LICENSE
summary: Extremely fast hash algorithm
description: |
xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. It
successfully completes the SMHasher test suite which evaluates collision,
dispersion and randomness qualities of hash functions. Code is highly
portable, and hashes are identical on all platforms (little / big endian).
repository: https://github.com/Cyan4973/xxHash
documentation: https://github.com/Cyan4973/xxHash

extra:
recipe-maintainers:
- KGB99

0 comments on commit 7844382

Please sign in to comment.