# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=openzwave
pkgver=1.4.164
pkgrel=2
pkgdesc="a C++ and DotNet library to control Z-Wave Networks via a Z-Wave Controller."
url="http://www.openzwave.net/"
arch="all"
license="GPL"
depends=""
depends_dev="eudev-dev"
makedepends="$depends_dev linux-headers coreutils"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://old.openzwave.com/downloads/openzwave-$pkgver.tar.gz
	016d6e5d6a2d61674032805886418923d20604b9.patch
	"
builddir="$srcdir"/openzwave-$pkgver

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr instlibdir=usr/lib pkgconfigdir="usr/lib/pkgconfig/" \
		sysconfdir=etc/openzwave install || return 1
}

md5sums="5878ed2156e97614db43227c4f329d88  openzwave-1.4.164.tar.gz
e78f35a1696e66ff2ede1520a9b1a637  016d6e5d6a2d61674032805886418923d20604b9.patch"
sha256sums="4ecf39787aaf278c203764069b581dbc26094ce57cafeab4a0c1f012d2c0ac69  openzwave-1.4.164.tar.gz
0b6a30a264be908aafdbab6248b50d17de41feff52d715ece7995ee94e03e705  016d6e5d6a2d61674032805886418923d20604b9.patch"
sha512sums="a844f931bc9140e96e43c39e948317dc4271865480897ef76c1f955c59963bda8ddfb9e1a0a021fa4de5692653613277a7c74418f07d5d1678969433ff2357e4  openzwave-1.4.164.tar.gz
0fb85325ddc1cd621e697115291973c6744fdaf27a124494547f5d3c41d6148ac581b6fcdf59572e337d13a857604b5c28a75a6018d08c6d6623ad1a1d695416  016d6e5d6a2d61674032805886418923d20604b9.patch"
