# Template file for 'hiredis'
pkgname=hiredis
version=1.3.0
revision=1
build_style=gnu-makefile
make_build_args="OPTIMIZATION= USE_WERROR=0"
checkdepends="redis"
short_desc="Minimalistic C client for Redis"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/redis/hiredis"
changelog="https://github.com/redis/hiredis/releases"
distfiles="https://github.com/redis/hiredis/archive/v${version}.tar.gz"
checksum=25cee4500f359cf5cad3b51ed62059aadfc0939b05150c1f19c7e2829123631c

post_install() {
	vlicense COPYING
}

hiredis-devel_package() {
	depends="${sourcepkg}-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
