description="Extremely fast non-cryptographic hash algorithm"
url=https://cyan4973.github.io/xxHash/

name=xxhash
version=0.8.3

PKGMK_KEEP_SOURCES='no'

source=(https://github.com/Cyan4973/xxHash/archive/refs/tags/v${version}.tar.gz)

build() {

  make PREFIX=/usr DISPATCH=1 -C xxHash-${version}
  make PREFIX=/usr DISPATCH=1 DESTDIR="${PKG}" -C xxHash-${version} install

  install -Dm 644 xxHash-${version}/LICENSE -t "${PKG}"/usr/share/licenses/$name-$version
}
