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

proc build {
	cd $builddir
	make || return 1
}

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

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