blob: cc0911006dfa5a2303c7808889ad3fa5f982be50 (
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
|
pkgname='webvirt-api-git'
pkgver=1.0.0.r6.gf6b4d01
pkgrel=1
pkgdesc='PAM-athenticated HTTP proxy to webvirtd'
license=('Apache')
url='https://github.com/kevr/webvirt_api'
arch=('any')
depends=(
'webvirtd'
'uwsgi'
'uwsgi-plugin-python'
'python-poetry'
'python-virtualenv'
)
provides=('webvirt-api')
conflicts=('webvirt-api')
source=("${pkgname}::git+https://github.com/kevr/webvirt_api")
sha256sums=('SKIP')
install='webvirt-api-git.install'
pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package()
{
cd "$pkgname"
# Install application to /var/lib/webvirt_api
find . -type f -exec install -vDm644 {} "$pkgdir"/var/lib/webvirt_api/{} \;
# Install UWSGI configuration to /etc/uwsgi
# Enable via: systemctl start uwsgi@webvirt_api
install -Dm644 res/webvirt_api.ini "$pkgdir"/etc/uwsgi/webvirt_api.ini
}
|