# Maintainer:
pkgname=hiredis
pkgver=0.13.3
pkgrel=1
pkgdesc="Minimalistic C client library for Redis"
url="https://github.com/redis/hiredis"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"

	make DEBUG=
}

package() {
	cd "$_builddir"

	make PREFIX="$pkgdir"/usr install
}

md5sums="43dca1445ec6d3b702821dba36000279  hiredis-0.13.3.tar.gz"
sha256sums="717e6fc8dc2819bef522deaca516de9e51b9dfa68fe393b7db5c3b6079196f78  hiredis-0.13.3.tar.gz"
sha512sums="0d8b71d5ee4105e8aaeeee308795afc2c1f60a04b0bfe8ae873d800a0c157882ec307efa04a8d0e63b538fd3fc3f88eedf4d46cb87c8937e2403927aeb7e434c  hiredis-0.13.3.tar.gz"
