blob: adb9866d143974c7e9eefeeba8a5e4b1ec898131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
pkgname=python-zm-py
pkgver=include(`version')dnl
_pypiname=${pkgname#python-}
pkgrel=1
pkgdesc="A loose python wrapper around the ZoneMinder REST API"
arch=(any)
url="https://github.com/rohankapoorcom/zm-py"
license=(Apache-2.0)
makedepends=("python" "python-pip")
build() {
pip install --no-deps --target="${_pypiname}" ${_pypiname}==${pkgver}
}
package() {
sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
mkdir -p $pkgdir/"$sitepackages"
cp -r $srcdir/${_pypiname}/* $pkgdir/"$sitepackages"
}
|