blob: ff72b8b13e9976fa068db08507da929d479b9a80 (
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
|
# Maintainer: Nocifer <apmichalopoulos at gmail dot com>
# Contributor: Luis Aranguren <pizzaman@hotmail.com>
pkgname=python-pyzm-git
pkgver=0.3.64.r392.043e304
pkgrel=1
pkgdesc='Python API, Log, Event Server and Memory wrapper for ZoneMinder (git version)'
arch=('any')
url='https://github.com/ZoneMinder/pyzm'
license=('GPL-2.0-only')
depends=('python-dateparser' 'python-dotenv' 'python-imutils' 'python-mysql-connector' 'python-numpy' 'python-pillow' 'python-portalocker'
'python-progressbar' 'python-psutil' 'python-requests' 'python-shapely' 'python-sqlalchemy' 'python-websocket-client')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('python-pyzm')
conflicts=('python-pyzm')
source=("${pkgname}::git+https://github.com/ZoneMinder/pyzm.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname}
printf "%s.r%s.%s" "$(awk -F \" 'NR==2{print $2}' pyzm/__init__.py)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd ${pkgname}
sed -i "s|/etc/zm|/etc/zoneminder|" pyzm/ZMLog.py
}
build() {
cd ${pkgname}
python -m build --wheel --no-isolation
}
package() {
cd ${pkgname}
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|