summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0372819494c3c29b75dd49be894d943db8ade976 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
# $Id$
# Original Community Repo
# =======================
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Jonathan Wiersma <archaur at jonw dot org>

# Modificationt to use Git Master Source
# Maintainer: James Harvey <jamespharvey20@gmail.com>
#    * This PKGBUILD as closely as possible matches community's virt-manager 1.2.1-1
#    * All namcap warnings are identical, as of 1.2.1.r4564.466bf92

pkgbase=virt-manager-git
_pkgbase=virt-manager
pkgname=(virt-install-git virt-manager-git)
pkgver=1.2.1.r4693.601a82c
pkgrel=1
pkgdesc="Console user interface for managing virtual machines"
arch=('any')
url="http://virt-manager.org/"
license=('GPL')
depends=('python2' 'libvirt-python' 'libxml2' 'libvirt'
	 'libosinfo' 'python2-ipaddr' 'python2-gobject' 'python2-requests')
makedepends=('intltool>=0.35.0'
	     'dbus-python' 'gtk-vnc' 'rarian'
	     'gconf' 'yajl' 'librsvg' 'python2-gconf' 'libuser'
	     'python2-ipy' 'newt-syrup' 'openbsd-netcat' 'x11-ssh-askpass'
	     'graphite' 'spice-gtk3'
	     'libvirt-glib' 'vte3' 'git')
source=("git+https://github.com/${_pkgbase}/${_pkgbase}")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgbase}"
  echo $(cat virtcli/cliconfig.py | grep '^__version__' | sed 's|^__version__ = "||' | sed 's|"$||').r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

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

package_virt-install-git() {
  conflicts=('virt-install')
  provides=('virt-install')
  cd "$srcdir/$_pkgbase"
  python2 setup.py install --root "$pkgdir"
}

package_virt-manager-git() {
  conflicts=('virt-manager')
  provides=('virt-manager')
  install=virt-manager.install
  depends=('virt-install-git'
	    'python2' 'libvirt-python' 'libxml2' 'libvirt' 'python2-requests'
	    'dbus-python' 'gtk-vnc' 'rarian'
	    'gconf' 'yajl' 'librsvg' 'python2-gconf' 'libuser'
	    'python2-ipy' 'newt-syrup' 'openbsd-netcat' 'x11-ssh-askpass'
	    'graphite' 'spice-gtk3'
	    'libvirt-glib' 'vte3')
}