# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter setvar _name = 'python-openzwave' setvar pkgname = 'py3-openzwave' setvar pkgver = '0.3.2' setvar pkgrel = '0' setvar pkgdesc = ""Python wrapper for openzwave"" setvar url = ""http://www.openzwave.com/"" setvar arch = ""all"" setvar license = ""GPL"" setvar depends = "" $pkgname-lib $pkgname-api $pkgname-manager"" setvar makedepends = ""python3-dev linux-headers eudev-dev coreutils"" setvar install = """" setvar subpackages = ""$pkgname-lib $pkgname-api::noarch $pkgname-manager::noarch"" setvar source = ""https://github.com/OpenZWave/python-openzwave/raw/master/archives/${_name}-${pkgver}.tgz"" setvar builddir = ""$srcdir/python-openzwave-$pkgver"" proc build { cd $builddir unset CFLAGS CPPFLAGS make build || return 1 python3 setup-lib.py build || return 1 python3 setup-api.py build || return 1 python3 setup-manager.py build || return 1 } proc package { mkdir -p $pkgdir } proc lib { setvar pkgdesc = ""$pkgdesc (lib)"" setvar depends = ""python3 py3-six"" cd $builddir python3 setup-lib.py install \ --single-version-externally-managed --root ${subpkgdir} mkdir -p "$subpkgdir"/usr/share/"$pkgname" mv "$subpkgdir"/usr/config "$subpkgdir"/usr/share/"$pkgname" } proc api { setvar pkgdesc = ""$pkgdesc (api)"" setvar depends = ""python3 py3-dispatcher"" cd $builddir python3 setup-api.py install \ --single-version-externally-managed --root $subpkgdir } proc manager { setvar pkgdesc = ""$pkgdesc (manager)"" setvar depends = ""python3 py3-urwid"" cd $builddir python3 setup-manager.py install \ --single-version-externally-managed --root $subpkgdir } setvar sha512sums = ""f495c2e41a67f715dbf0e312ee13d59ab6c907403dacb12d48c2becbb433ab458a53f3d634e21373e1aa0141ab71e418ec15ebd29f9d4506261700bcfadcbc79 python-openzwave-0.3.2.tgz""