blob: a5c0a142fed5a7f20712e5a7a7fb5137ab14b401 (
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
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=home-assistant
_pkgname=homeassistant
pkgver=0.33.3
pkgrel=1
pkgdesc="A Home automation platform"
url="https://home-assistant.io"
arch="all"
license="MIT"
depends="py3-requests py3-yaml py3-tz py3-jinja2 py3-voluptuous
py3-async-timeout"
makedepends="python3-dev"
subpackages="$pkgname-aiohttp"
pkgusers="hass"
pkggroups="hass"
install="$pkgname.pre-install"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
update-deps.patch
$pkgname.initd
$pkgname.confd"
builddir="$srcdir"/$_pkgname-$pkgver
# NOTE: https://github.com/home-assistant/home-assistant/issues/4288
# hass needs aiohttp at older version then available in aports
# this should be fixed upstream after which this can be moved to community
_ver_aiohttp=1.0.5
_builddir_aiohttp="$srcdir/aiohttp-$_ver_aiohttp"
depends="$depends $pkgname-aiohttp"
source="$source https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-$_ver_aiohttp.tar.gz"
build() {
cd "$builddir"
python3 setup.py build || return 1
cd "$_builddir_aiohttp"
python3 setup.py build || return 1
}
package() {
cd "$builddir"
python3 setup.py install \
--root="$pkgdir" --prefix=/usr --optimize=1 || return 1
install -Dm 755 "$srcdir/$pkgname".initd \
"$pkgdir"/etc/init.d/hass || return 1
install -Dm 644 "$srcdir/$pkgname".confd \
"$pkgdir"/etc/conf.d/hass || return 1
}
aiohttp() {
pkgdesc="$pkgdesc (aiohttp dependency)"
depends="python3 py3-async-timeout py3-chardet py3-multidict py3-yarl
!py3-aiohttp"
cd "$_builddir_aiohttp"
python3 setup.py install \
--root="$subpkgdir" --prefix=/usr --optimize=1 || return 1
}
md5sums="967d4c16becbdd99ef0fb34d718b7efc homeassistant-0.33.3.tar.gz
14cd39ae5fc2e0ecd744022963554a0c update-deps.patch
f98b4840a76b5cee70b2f825cfb26103 home-assistant.initd
6cc698d864cfe3970913202ccf4ccbab home-assistant.confd
488026a1c1e716741842403b7b9f030a aiohttp-1.0.5.tar.gz"
sha256sums="87e09608a98eebc532d079c9894fd6a123070b53b6f608542abab4e201486e86 homeassistant-0.33.3.tar.gz
dc19ea6037f6a738d3614a122e55fe0b6c2a55686855372e659de9bb25e7d97e update-deps.patch
3518ebc275eee3041ff2821a83b7bb6151990b37c4512b0497874a9eb6b28cc8 home-assistant.initd
ed25ddb01fc0362bb5442ef8ca1ae9a1382334f0cadc54dec53a5d5b5c46c8c3 home-assistant.confd
c3e1897726f97d40e067e8b658b2dbdfe216f32b801c5c589212e1b1f9aa8388 aiohttp-1.0.5.tar.gz"
sha512sums="8191d38653897ef978f7bb262b555a468e51fd924781bd223420ea47eb7d3d21014f84f00d2ae9d071eead6bb0b1bf65433ae5e12b58af4241b5991e063b29bd homeassistant-0.33.3.tar.gz
0c3287e9861e67ff97a9ccea60d57c6a772707a43cfa016f056832688bf776cc3df92c34e2f0dfb017a0566792331c1e6f4318db4845e283435f7422b4df6cdc update-deps.patch
34b8387836490228d94f6836bd0222812285d0a1161225b47b03c1398526f235c2ef2180ebaf0a81fe59165230467b5ad75eb06b3349175ef655da9bd00acd8e home-assistant.initd
12c24a79245ec70f001e63f60737017974f61ac5b508d29f998cd60ad5c0e97dfd0c5efb4f3d8357be1d05b7585de9b8d945f8f73b47e94e3667c9b02138f822 home-assistant.confd
db5661b77b90eaecf04d80cebc1023ec7930bd639aed075d24291f897784d040ccc3fc5f9db310a3886f1661a0d163aaf42a8c5549b566027e890df42bb1bc0d aiohttp-1.0.5.tar.gz"
|