blob: aa9f5ab3419a52de735e2944519e022134e3c154 (
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
|
# Maintainer: Fabio Manganiello <info@fabiomanganiello.com>
_pkgname=platypush
pkgname=${_pkgname}-git
pkgver=0.13.5.r0.0af326fa
pkgrel=1
pkgdesc="Universal multi-platform command executor and automation manager"
arch=('any')
license=('MIT')
url="https://github.com/BlackLight/platypush"
depends=('python' 'python-yaml' 'redis' 'python-redis' 'python-requests' 'python-sqlalchemy' 'python-websockets' 'python-websocket-client' 'python-wheel' 'python-flask'
'python-pip' 'python-dateutil' 'python-frozendict' 'python-bcrypt' 'python-zeroconf')
optdepends=('python-paho-mqtt: MQTT integrations support'
'python-pybluez: Bluetooth support'
'python-gattlib: Low-energy Bluetooth devices support'
'python-paramiko: SSH support'
'python-croniter: Platypush cron support'
'python-pyserial: Arduino/serial device support')
conflicts=('platypush')
options=(!strip)
source=("${_pkgname}.tar.gz::https://github.com/BlackLight/${_pkgname}/archive/master.tar.gz")
sha512sums=('4aae41e3b9caf2f94e511b7b7e1c776b5e2cbc5b029398e48b40c4d090fc7bdce006aaa0ae4be98569e419859b3ec6a5805e75720233f64f54d44edea537faf2')
package() {
cd "${srcdir}/${_pkgname}-master"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -m755 -d "${pkgdir}/usr/lib/systemd/user"
install -m644 "${srcdir}/${_pkgname}-master/examples/systemd/platypush.service" "${pkgdir}/usr/lib/systemd/user"
echo
echo
echo ---------------------------------------------
echo You can start the Platypush service through
echo systemctl --user start platypush.
echo
echo Remember to enable/start the Redis service
echo before starting Platypush.
echo ---------------------------------------------
echo
echo
}
|