aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/py-openzwave/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/py-openzwave/APKBUILD b/testing/py-openzwave/APKBUILD
new file mode 100644
index 0000000000..9c3b7008b2
--- /dev/null
+++ b/testing/py-openzwave/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+_name="python-openzwave"
+pkgname=${_name/python/py}
+pkgver=0.3.1
+pkgrel=0
+pkgdesc="Python wrapper for openzwave"
+url="http://www.openzwave.com/"
+arch="all"
+license="GPL"
+depends="python3"
+makedepends="python3-dev linux-headers eudev-dev coreutils"
+install=""
+subpackages="$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() {
+ cd "$builddir"
+ python3 setup-lib.py install \
+ --single-version-externally-managed --root ${pkgdir}
+}
+
+api() {
+ pkgdesc="$pkgdesc (api)"
+ depends="python3"
+ cd "$builddir"
+ python3 setup-api.py install \
+ --single-version-externally-managed --root ${subpkgdir}
+}
+
+manager() {
+ pkgdesc="$pkgdesc (manager)"
+ depends="python3"
+ cd "$builddir"
+ python3 setup-manager.py install \
+ --single-version-externally-managed --root ${subpkgdir}
+}
+
+md5sums="86bfab5544b7cfdff4d47136e07133b3 python-openzwave-0.3.1.tgz"
+sha256sums="829df24774289a8dc8bd6415b57b94dd4f9eb7ec2cb00c49a6c9e4a5068eb0e5 python-openzwave-0.3.1.tgz"
+sha512sums="b00059754493adf755b5a83aa3c42a77d9ef116fc9d8ba87026edb6e838480f3a9a7aebb02ff2c3c1cf4d909e95fcfa19410a173a2460693712d0981d9a5bd47 python-openzwave-0.3.1.tgz"