blob: bf928a9878e66f54a67dbc3ab9b1da267df26372 (
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
42
43
44
45
|
# Contributor: Maxim Devaev <[email protected]>
# Author: Maxim Devaev <[email protected]>
pkgname="kvmd"
pkgver="0.11"
pkgrel="1"
pkgdesc="The main Pi-KVM daemon"
arch=("any")
url="https://github.com/mdevaev/pi-kvm"
license=("GPL")
depends=(
"python"
"python-yaml"
"python-aiohttp"
"python-aiofiles"
"python-pyudev"
"python-raspberry-gpio"
)
makedepends=("python-setuptools" "wget")
build() {
cd $srcdir
if [ ! -d pi-kvm-$pkgver ]; then
msg "Downloading tag v$pkgver..."
wget $url/archive/v$pkgver.tar.gz
tar -xzf v$pkgver.tar.gz
fi
rm -rf $pkgname-build
cp -r pi-kvm-$pkgver/kvmd $pkgname-build
cd $pkgname-build
python setup.py build
}
package() {
cd $srcdir/$pkgname-build
python setup.py install --root=$pkgdir
install -Dm644 kvmd.service "$pkgdir"/usr/lib/systemd/system/kvmd.service
mkdir -p "$pkgdir"/usr/share/kvmd
cp -r web "$pkgdir"/usr/share/kvmd
cp -r configs "$pkgdir"/usr/share/kvmd
}
|