Name xxhash
Description Extremely fast non-cryptographic hash algorithm
Version 0.8.3-1
Package Base xxhash
Homepage https://cyan4973.github.io/xxHash/
Maintainers ['Christian Hesse <eworm@archlinux.org>', 'Maxime Gauduin <alucryd@archlinux.org>']
Contributors ['Fabien Dubosson <fabien.dubosson@gmail.com>', 'Konstantin Gizdov <arch@kge.com>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/xxhash
Sources ['git+https://github.com/Cyan4973/xxHash.git#tag=v0.8.3']
Dependencies ['glibc']
Optional-Dependencies []
Build-Dependencies ['git']
Provides ['libxxhash.so']
Builddate 06-01-2025 08:26:25
Architecture x86_64
Distro-Version
Licenses ['BSD', 'GPL2']
Hash 3d48ff40b744aa4503cd5638f620c2c39a12d27967d1db3ab46bf18ff4b2fd80
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Fabien Dubosson <fabien.dubosson@gmail.com>
# Contributor: Konstantin Gizdov <arch@kge.com>

pkgname=xxhash
pkgver=0.8.3
pkgrel=1
pkgdesc='Extremely fast non-cryptographic hash algorithm'
arch=(x86_64)
url=https://cyan4973.github.io/xxHash/
license=(
  GPL2
  BSD
)
depends=(glibc)
makedepends=(git)
provides=(libxxhash.so)
source=(git+https://github.com/Cyan4973/xxHash.git#tag=v${pkgver})
b2sums=('e8c03ae30da955a0399bbbdee866dcc3f999bd1f780373d28119972a89a6ef3b266097024379c779d4c02ae3ca218728d4843c6085487ec76c5e7e1b393e1ea2')

prepare() {
  cd xxHash/

  # fix build for non-x86_64 with DISPATCH=1
  git cherry-pick -n \
    '50c5ba6a93a7e7f564aac908cd19e5a02943f3e7' \
    'db36ccbeea58bd6ee7dd55e77130f1655d5ff6db'
}

build() {
  make PREFIX=/usr DISPATCH=1 -C xxHash
}

package() {
  make PREFIX=/usr DISPATCH=1 DESTDIR="${pkgdir}" -C xxHash install
  install -Dm 644 xxHash/LICENSE -t "${pkgdir}"/usr/share/licenses/xxhash
}

# vim: ts=2 sw=2 et: