summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-09-26 02:57:24 +0300
committerDevaev Maxim <[email protected]>2018-09-26 02:57:24 +0300
commit81a5311349564a1016c4af2bf18ae872b650e85b (patch)
treed01fd027948494e22ae2c14334b98c1515e5e8a4 /PKGBUILD
parentf3946f102fc167efdc53c73412b2c0d6ac6c72c5 (diff)
moved kvmd to the root
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000..58da9934
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Contributor: Maxim Devaev <[email protected]>
+# Author: Maxim Devaev <[email protected]>
+
+
+pkgname=kvmd
+pkgver=0.66
+pkgrel=1
+pkgdesc="The main Pi-KVM daemon"
+url="https://github.com/pi-kvm/kvmd"
+license=(GPL)
+arch=(any)
+depends=(
+ python
+ python-yaml
+ python-aiohttp
+ python-aiofiles
+ python-pyudev
+ python-raspberry-gpio
+ python-pyserial
+ python-setproctitle
+)
+makedepends=(python-setuptools)
+source=("$url/archive/v$pkgver.tar.gz")
+md5sums=(SKIP)
+
+
+build() {
+ cd $srcdir
+ rm -rf $pkgname-build
+ cp -r kvmd-$pkgver $pkgname-build
+ cd $pkgname-build
+ python setup.py build
+}
+
+package() {
+ cd $srcdir/$pkgname-build
+ python setup.py install --root="$pkgdir"
+ install -Dm644 configs/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"
+}