summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d6f01a4c2797d95e59bdbb323e8fae3bc253d2e (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=1.5.0.r223.g3bc7ff24
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')
makedepends=('git' 'intltool' 'python-cairo')
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-gtk3' 'python-cairo')
  provides=('virt-manager')
  conflicts=('virt-manager')
  cd "$srcdir/$_pkgbase"
  install -Dm 755 build/virt-manager -t "${pkgdir}/usr/bin"
}