summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b559fe7fb411efe49e69c63eb163e17c5132fc94 (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
# Maintainer: Katherine Cumberbatch <stykers@stykers.moe>
pkgname=openxenmanager-git
pkgver=r292.1cb5c1c
pkgrel=1
pkgdesc="An opensource multiplatform clone of Citrix XenCenter"
arch=('any')
url="https://github.com/OpenXenManager/openxenmanager"
license=('GPL2')
groups=()
depends=('python2' 'rrdtool' 'gtk-vnc-gtk2' 'python2-configobj' 'pygtk' 'python2-raven')
makedepends=('git' 'python2-setuptools')
conflicts=('openxenmanager-svn' 'python2-gtkchart-git')
options=(!emptydirs)
install=
source=("$pkgname"::"git+https://github.com/OpenXenManager/openxenmanager.git")
sha1sums=('SKIP')
backup=()

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


package() {
  cd "$srcdir/$pkgname"
  python2 setup.py install --root="$pkgdir/" --optimize=1

  install -D -m644 "desktop_and_icons/openxenmanager.desktop" ${pkgdir}/usr/share/applications/openxenmanager.desktop
}