blob: 69c0cb790263b143b7559bbbd0a3f8458220a2d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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"
|