void-packages/srcpkgs/xxHash/template
2019-10-11 08:31:32 +02:00

34 lines
819 B
Bash

# Template file for 'xxHash'
pkgname=xxHash
version=0.7.2
revision=1
build_style=gnu-makefile
make_use_env=yes
make_check_target="test"
short_desc="Fast non-cryptographic hashing algorithm"
maintainer="John <johnz@posteo.net>"
license="BSD-2-Clause, GPL-2.0-or-later"
homepage="https://cyan4973.github.io/xxHash/"
distfiles="https://github.com/Cyan4973/${pkgname}/archive/v${version}.tar.gz>xxhash-${version}.tar.gz"
checksum=7e93d28e81c3e95ff07674a400001d0cdf23b7842d49b211e5582d00d8e3ac3e
post_install() {
vlicense LICENSE
}
libxxHash_package() {
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
xxHash-devel_package() {
short_desc+=" - development files"
depends="libxxHash>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}