diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-03-25 22:27:06 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-03-25 22:27:19 +0100 |
commit | 1d791cdbe027abf0c0348f7377ca6845bb240fee (patch) | |
tree | 01dbde8f2f99b6635bea55cb39e9bbada7d6f77d /community | |
parent | 869f90445e4ed0509bc19994c1a4900901160855 (diff) | |
download | aports-1d791cdbe027abf0c0348f7377ca6845bb240fee.tar.bz2 aports-1d791cdbe027abf0c0348f7377ca6845bb240fee.tar.xz |
community/py3-openzwave: upgrade to 0.3.2 and move to community
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-openzwave/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/community/py3-openzwave/APKBUILD b/community/py3-openzwave/APKBUILD new file mode 100644 index 0000000000..69c0cb7902 --- /dev/null +++ b/community/py3-openzwave/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Carlo Landmeter <clandmeter@gmail.com> +_name=python-openzwave +pkgname=py3-openzwave +pkgver=0.3.2 +pkgrel=0 +pkgdesc="Python wrapper for openzwave" +url="http://www.openzwave.com/" +arch="all" +license="GPL" +depends=" $pkgname-lib $pkgname-api $pkgname-manager" +makedepends="python3-dev linux-headers eudev-dev coreutils" +install="" +subpackages="$pkgname-lib $pkgname-api::noarch $pkgname-manager::noarch" +source="https://github.com/OpenZWave/python-openzwave/raw/master/archives/${_name}-${pkgver}.tgz" +builddir="$srcdir/python-openzwave-$pkgver" + + +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 +} + +package() { + mkdir -p "$pkgdir" +} + +lib() { + pkgdesc="$pkgdesc (lib)" + 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" +} + + +api() { + pkgdesc="$pkgdesc (api)" + depends="python3 py3-dispatcher" + cd "$builddir" + python3 setup-api.py install \ + --single-version-externally-managed --root "$subpkgdir" +} + +manager() { + pkgdesc="$pkgdesc (manager)" + depends="python3 py3-urwid" + cd "$builddir" + python3 setup-manager.py install \ + --single-version-externally-managed --root "$subpkgdir" +} + + +sha512sums="f495c2e41a67f715dbf0e312ee13d59ab6c907403dacb12d48c2becbb433ab458a53f3d634e21373e1aa0141ab71e418ec15ebd29f9d4506261700bcfadcbc79 python-openzwave-0.3.2.tgz" |