summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f87542b3c259ce76c5549d81333d256374095a46 (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
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
# for more information on packaging from GIT sources.

# Maintainer: Vincenzo Maffione <v.maffione@gmail.com>
pkgname=qrun-git
pkgver=r58.b4de532
pkgrel=1
pkgdesc="A command line tool to run QEMU in the most common configurations"
arch=('any')
license=('GPL')
depends=('python' 'qemu' 'bridge-utils' 'iproute2')
makedepends=('git')
source=('git+https://github.com/vmaffione/qrun')
md5sums=('SKIP')
provides=('qrun')
conflicts=('qrun' 'torque')

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

package() {
    # Install the script into /usr/bin
    mkdir -p "$pkgdir/usr/bin"
    install "$srcdir/${pkgname%-git}/qrun.py" "$pkgdir/usr/bin/qrun"
}

# vim:set ts=2 sw=2 et: