blob: 50b33230b06b6b71dc3e2986a1886331a302e8a9 (
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
|
pkgname=virtkvm-git
pkgver=r7.d47e571
pkgrel=1
pkgdesc="A virtual KVM switch"
arch=('i686' 'x86_64')
url="https://github.com/alexbakker/virtkvm.git"
license=('GPL')
depends=('ddcutil' 'python-flask' 'libvirt-python' 'python-pyaml' 'python-xmltodict')
makedepends=('git')
conflicts=('virtkvm')
provides=('virtkvm')
# The git repo is detected by the 'git:' or 'git+' beginning. The branch
# '$pkgname' is then checked out upon cloning, expediating versioning:
#source=('git+https://github.com/falconindy/expac.git'
source=("$pkgname"::'git://github.com/alexbakker/virtkvm.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
python ./setup.py build
}
package() {
cd "$pkgname"
python ./setup.py install --root="$pkgdir/" --optimize=1
}
|