diff options
author | Devaev Maxim | 2018-06-29 01:33:06 +0300 |
---|---|---|
committer | Devaev Maxim | 2018-06-29 01:33:06 +0300 |
commit | 119de3db346b30695a223424e1801584e35e5a45 (patch) | |
tree | e3816cd0a668f0d488e66754e69bd8a83fb53438 /PKGBUILD | |
download | aur-119de3db346b30695a223424e1801584e35e5a45.tar.gz |
Update to -
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..407b26e7d0ca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor: Maxim Devaev <mdevaev@gmail.com> +# Author: Maxim Devaev <mdevaev@gmail.com> + + +pkgname="kvmd" +pkgver="0.2" +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-raspberry-gpio" +) +backup=("etc/kvmd.yaml") +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.yaml $pkgdir/etc/kvmd.yaml + install -Dm644 kvmd.service "$pkgdir"/usr/lib/systemd/system/nginx.service +} |