blob: 219c5d9fab37c5926c7121c47e65416c13110e79 (
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
|
# Maintainer: Henry-Joseph Audéoud <h.audeoud@gmail.com>
pkgname=walt-server
pkgver=5
pkgrel=1
pkgdesc="WalT server components"
arch=(any)
url="https://walt-project.liglab.fr"
license=('BSD')
depends=(walt-common walt-virtual
python-snimpy python-ipaddress python-requests
python-psycopg2 python-sdnotify python-dateutil)
source=("https://files.pythonhosted.org/packages/source/w/${pkgname}/${pkgname}-${pkgver}.tar.gz"
"LICENSE")
sha256sums=('2368e364f613d364a8688643c3b0254a48a74c07eac0e8da39351d1fa6d05a9e'
'49e4de7e7679bb97dd8bf5363c87da852ef1e00d8a1263d2fe4855d7b47fd401')
package() {
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "$pkgname-$pkgver"
python setup.py install --root "$pkgdir"
local site_packages="$(python -c "import site; print(site.getsitepackages()[0])")"
# These files are already provided by walt-common
rm "${pkgdir}/${site_packages}"/walt/{__init__.py*,__pycache__/__init__.*.pyc}
}
|