summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c57f92dff024f3fa888d30992cf65347132a1fc5 (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
46
47
48
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Jonathan Wiersma <archaur at jonw dot org>

_pkgbase=virt-manager
pkgbase=$_pkgbase-git
pkgname=(virt-install-git virt-manager-git)
pkgver=4.1.0.r323.gb83a1b0d0
pkgrel=1
pkgdesc="Console user interface for managing virtual machines"
arch=('any')
url="http://virt-manager.org/"
license=('GPL')
depends=('python-gobject' 'libvirt-glib' 'libvirt-python'
	 'python-requests' 'libosinfo' 'python-tqdm')
makedepends=('git' 'intltool' 'python-setuptools' 'python-cairo' 'python-docutils')
source=("git+https://github.com/virt-manager/virt-manager.git")
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgbase"
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgbase"
  python setup.py build
}

package_virt-install-git() {
  provides=('virt-install')
  conflicts=('virt-install')
  cd "$srcdir/$_pkgbase"
  python setup.py --no-update-icon-cache --no-compile-schemas install --root "$pkgdir"
  python -m compileall "${pkgdir}/usr/share/virt-manager"
  python -O -m compileall "${pkgdir}/usr/share/virt-manager"
  rm "${pkgdir}/usr/bin/virt-manager"
}

package_virt-manager-git() {
  pkgdesc="Desktop user interface for managing virtual machines"
  depends=("virt-install-git=$pkgver" 'vte3' 'gtk-vnc' 'spice-gtk' 'python-cairo')
  provides=('virt-manager')
  conflicts=('virt-manager')
  cd "$srcdir/$_pkgbase"
  install -Dm 755 build/virt-manager -t "${pkgdir}/usr/bin"
}