blob: 36d892aca360248e6c0f6bdb153a2bba091452bf (
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=v0.5.2
_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"
}
|